Skip to content

Commit

Permalink
#251 Minor clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeijer committed Mar 18, 2015
1 parent d056cfd commit 358feaa
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions test/common/util/opencontext.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ describe('openContext', function () {
storage = new testFixture.Storage({globConf: gmeConfig});
importParam.storage = storage;
importAndCloseProject(importParam, function (err, _commitHash) {
expect(err).equal(null);
commitHash = _commitHash;
done(err);
});
Expand Down Expand Up @@ -136,10 +137,7 @@ describe('openContext', function () {
overwriteProject: true
};
importAndCloseProject(importParam, function (err, commitHash) {
if (err) {
done(err);
return;
}
expect(err).equal(null);
openContext(storage, gmeConfig, parameters, function (err, result) {
expect(err).equal(null);
expect(result).to.have.keys('commitHash', 'core', 'project', 'rootNode');
Expand Down Expand Up @@ -287,6 +285,7 @@ describe('openContext', function () {
});
importParam.storage = storage;
importAndCloseProject(importParam, function (err, _commitHash) {
expect(err).equal(null);
commitHash = _commitHash;
done(err);
});
Expand Down Expand Up @@ -380,10 +379,7 @@ describe('openContext', function () {
overwriteProject: true
};
importAndCloseProject(importParam, function (err, commitHash) {
if (err) {
done(err);
return;
}
expect(err).equal(null);
openContext(storage, gmeConfig, parameters, function (err, result) {
expect(err).equal(null);
expect(result).to.have.keys('commitHash', 'core', 'project', 'rootNode');
Expand Down Expand Up @@ -617,10 +613,7 @@ describe('openContext', function () {
overwriteProject: true
};
importAndCloseProject(importParam, function (err, commitHash) {
if (err) {
done(err);
return;
}
expect(err).equal(null);
openContext(storage, gmeConfig, parameters, function (err, result) {
expect(err).equal(null);
expect(result).to.have.keys('commitHash', 'core', 'project', 'rootNode');
Expand Down

0 comments on commit 358feaa

Please sign in to comment.