Files
bun.sh/test/js/third_party/jsonwebtoken/expires_format.test.js
2024-09-03 21:32:52 -07:00

11 lines
346 B
JavaScript

import { describe, expect, it } from "bun:test";
import jwt from "jsonwebtoken";
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');
});
});