Navigation Menu

Skip to content

Commit

Permalink
Add assertion for cs-command test about database contents
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 6, 2012
1 parent 7a0ddf7 commit 86e2982
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/cs-commands.test.js
@@ -1,6 +1,8 @@
var utils = require('./test-utils');
var assert = require('chai').assert;

var Domain = require('../lib/database/domain').Domain;

var context;
var temporaryDatabase;

Expand Down Expand Up @@ -29,6 +31,11 @@ suite('cs-create-domain', function() {
assert.equal(result.code, 0);
assert.include(result.output.stdout,
'Domain endpoints are currently being created.');

context.reopen();
var domain = new Domain('test', context);
assert.isTrue(domain.exists());

done();
});
});
Expand Down

0 comments on commit 86e2982

Please sign in to comment.