mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
11 lines
346 B
JavaScript
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');
|
|
});
|
|
});
|