-
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.
Merge branch 'develop' into feature/#13
Conflicts: .idea/jsLibraryMappings.xml
- Loading branch information
Showing
14 changed files
with
588 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,16 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
- "0.11" | ||
- "0.12" | ||
- "iojs" | ||
|
||
branches: | ||
only: | ||
- master | ||
- develop | ||
|
||
script: | ||
- npm run test:coverage | ||
- npm run build | ||
|
||
after_success: | ||
- npm run coveralls | ||
|
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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--reporter spec | ||
--recursive | ||
--timeout 10000 | ||
--timeout 2500 | ||
|
||
--require ./test/common.js |
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
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,53 @@ | ||
describe("pockets", function () { | ||
it("should add a pocket", function (done) { | ||
engine.pockets.create({ | ||
name: 'root', | ||
description: '' | ||
}, done); | ||
}); | ||
|
||
it("should update a pocket", function (done) { | ||
engine.pockets.update({ | ||
name: 'root', | ||
description: 'test' | ||
}, function (err) { | ||
if (err) | ||
return done(err); | ||
|
||
expect(engine.pockets.ROOT.description).to.equal('test'); | ||
done(); | ||
}); | ||
}); | ||
|
||
it("should create a 1st level pocket", function (done) { | ||
engine.pockets.create({ | ||
name: 'root', | ||
description: '' | ||
}, function (err) { | ||
if (err) | ||
return done(err); | ||
|
||
engine.pockets.create({ | ||
parent: 'root', | ||
name: 'savings' | ||
}, function (err) { | ||
if (err) | ||
return done(err); | ||
|
||
expect(engine.pockets.ROOT.pockets.savings).to.be.ok; | ||
done(); | ||
}); | ||
}); | ||
}); | ||
|
||
it("should delete a pocket", function (done) { | ||
engine.pockets.delete({ | ||
name: 'savings' | ||
}, function (err) { | ||
if (err) | ||
return done(err); | ||
expect(engine.pockets.ROOT.pockets.savings).to.be.undefined; | ||
done(); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.