proper use of assert
This commit is contained in:
parent
06e95c460a
commit
81ab1a0961
|
@ -66,8 +66,8 @@ describe('Application update test', function () {
|
||||||
var backups;
|
var backups;
|
||||||
it('can list the backups', function () {
|
it('can list the backups', function () {
|
||||||
backups = cloudron.listAppBackups(appId, APP_ID + '@' + APP_NEW_VERSION);
|
backups = cloudron.listAppBackups(appId, APP_ID + '@' + APP_NEW_VERSION);
|
||||||
assert(backups.length).to.be(1);
|
assert.strictEqual(backups.length, 1);
|
||||||
assert(backups[0].version).to.be(APP_OLD_VERSION);
|
assert.strictEqual(backups[0].version, APP_OLD_VERSION);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can restore app to previous version', function () {
|
it('can restore app to previous version', function () {
|
||||||
|
|
Loading…
Reference in New Issue