-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split up the tests into different files as requested in #6
- Loading branch information
1 parent
efd0ef1
commit ba681f7
Showing
2 changed files
with
23 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
var versionIO = require('../bin/versionIO.js'); | ||
var expect = require('chai').expect; | ||
|
||
describe("versionIO", function() { | ||
describe("#writeVersion()",function() { | ||
it("should return the version value of the testpackage.json in the test directory",function(done){ | ||
var result = versionIO.writeVersion("./test/testpackage.json","2.0.0",function(oldversion,newversion){ | ||
expect(newversion).to.not.equal(oldversion); | ||
}); | ||
done(); | ||
versionIO.writeVersion("./test/testpackage.json","1.0.0",function(oldversion,newversion){}); | ||
}) | ||
}) | ||
describe("#readVersion()",function() { | ||
it("should return the version value of the testpackage.json in the test directory",function(done2){ | ||
var result2 = versionIO.readVersion("./test/testpackage.json",function(version){ | ||
expect(version).to.equal("1.0.0"); | ||
}); | ||
done2(); | ||
}) | ||
}) | ||
}) |
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