aboutsummaryrefslogtreecommitdiff
path: root/test/js/third_party/jsonwebtoken/decoding.test.js
blob: 617c7f295278ee72ebb8dfbedd35f20e67361275 (plain) (blame)
1
2
3
4
5
6
7
8
9
import jwt from "jsonwebtoken";
import { expect, describe, it } from "bun:test";

describe("decoding", function () {
  it("should not crash when decoding a null token", function () {
    var decoded = jwt.decode("null");
    expect(decoded).toEqual(null);
  });
});