Skip to content

Commit

Permalink
Add test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Jan 23, 2016
1 parent 49c470f commit 36af8df
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions test/package.test.js
Expand Up @@ -5,8 +5,19 @@ var tokens = require('..');
describe('tokens', function() {

it('should export constructors', function() {
expect(tokens.Encoder).to.be.an('function');
expect(tokens.Decoder).to.be.an('function');
expect(tokens.Encoder).to.be.a('function');
expect(tokens.Decoder).to.be.a('function');
});

it('should export decoding functions', function() {
expect(tokens.decode).to.be.an('object');
expect(tokens.decode.sat).to.be.a('function');
expect(tokens.decode.oauthIntrospection).to.be.a('function');
});

it('should export encoding functions', function() {
expect(tokens.encode).to.be.an('object');
expect(tokens.encode.sat).to.be.a('function');
});

});

0 comments on commit 36af8df

Please sign in to comment.