-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,17 +29,17 @@ describe('main tests', function() { | |
|
||
it('and give us results', function () { | ||
assert.equal(Object.keys(output).length > 70, true); | ||
assert.equal(output['[email protected].7'].licenses, 'ISC'); | ||
assert.equal(output['[email protected].9'].licenses, 'ISC'); | ||
}); | ||
|
||
it('and convert to CSV', function() { | ||
var str = checker.asCSV(output); | ||
assert.equal('"module name","license","repository"', str.split('\n')[0]); | ||
assert.equal('"[email protected].7","ISC","https://github.com/isaacs/abbrev-js"', str.split('\n')[1]); | ||
assert.equal('"[email protected].9","ISC","https://github.com/isaacs/abbrev-js"', str.split('\n')[1]); | ||
}); | ||
it('and convert to MarkDown', function() { | ||
var str = checker.asMarkDown(output); | ||
assert.equal('[[email protected].7](https://github.com/isaacs/abbrev-js) - ISC', str.split('\n')[0]); | ||
assert.equal('[[email protected].9](https://github.com/isaacs/abbrev-js) - ISC', str.split('\n')[0]); | ||
}); | ||
}); | ||
|
||
|
@@ -63,7 +63,7 @@ describe('main tests', function() { | |
|
||
it('and give us results', function () { | ||
assert.ok(Object.keys(output).length > 70); | ||
assert.equal(output['[email protected].7'].description, 'Like ruby\'s abbrev module, but in js'); | ||
assert.equal(output['[email protected].9'].description, 'Like ruby\'s abbrev module, but in js'); | ||
}); | ||
|
||
it('and convert to CSV', function() { | ||
|
@@ -75,7 +75,7 @@ describe('main tests', function() { | |
|
||
var str = checker.asCSV(output, format); | ||
assert.equal('"module name","name","description","pewpew"', str.split('\n')[0]); | ||
assert.equal('"[email protected].7","abbrev","Like ruby\'s abbrev module, but in js","<<Should Never be set>>"', str.split('\n')[1]); | ||
assert.equal('"[email protected].9","abbrev","Like ruby\'s abbrev module, but in js","<<Should Never be set>>"', str.split('\n')[1]); | ||
}); | ||
|
||
it('and convert to MarkDown', function() { | ||
|
@@ -86,7 +86,7 @@ describe('main tests', function() { | |
}; | ||
|
||
var str = checker.asMarkDown(output, format); | ||
assert.equal(' - **[[email protected].7](https://github.com/isaacs/abbrev-js)**', str.split('\n')[0]); | ||
assert.equal(' - **[[email protected].9](https://github.com/isaacs/abbrev-js)**', str.split('\n')[0]); | ||
}); | ||
}); | ||
|
||
|