blob: 4d44243ab2fac0accdfdc983fe2892aca0748a72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import jwt from "jsonwebtoken";
import { expect, describe, it } from "bun:test";
describe("expires option", function () {
it("should throw on deprecated expiresInSeconds option", function () {
expect(function () {
jwt.sign({ foo: 123 }, "123", { expiresInSeconds: 5 });
}).toThrow('"expiresInSeconds" is not allowed');
});
});
|