Skip to content

Commit

Permalink
Add unit test for Copyright statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
zodiac403 authored May 17, 2018
1 parent 040dd94 commit 56414b4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,28 @@ describe('main tests', function() {
});
});

describe('handle copytight statement', function(){

it('should output copyright statements when configured in custom format', function(done) {
checker.init({
start: path.join(__dirname, '../'),
customFormat: {
copyright: '', // specify custom format
email: false,
licenseFile: false,
licenseText: false,
publisher: false
}
}, function(err, output) {
assert(output.hasOwnProperty('[email protected]'), 'Check if the expected package still exists.');
assert.equal(output['[email protected]'].copyright, 'Copyright (c) Isaac Z. Schlueter and Contributors');
done();
});

});

});

describe('should only list UNKNOWN or guessed licenses successful', function() {
var output;
before(function(done) {
Expand Down

0 comments on commit 56414b4

Please sign in to comment.