mirror of
https://github.com/hanzoai/node-jsonwebtoken.git
synced 2026-09-24 17:00:48 +00:00
This change extracts all tests in the current test files related to expiresIn and exp into a single test file. It also adds several missing tests.
13 lines
333 B
JavaScript
13 lines
333 B
JavaScript
var jwt = require('../index');
|
|
var expect = require('chai').expect;
|
|
|
|
describe('expires option', function() {
|
|
|
|
it('should throw on deprecated expiresInSeconds option', function () {
|
|
expect(function () {
|
|
jwt.sign({foo: 123}, '123', { expiresInSeconds: 5 });
|
|
}).to.throw('"expiresInSeconds" is not allowed');
|
|
});
|
|
|
|
});
|