proper use of assert

This commit is contained in:
Girish Ramakrishnan 2016-06-14 09:43:26 -07:00
parent 06e95c460a
commit 81ab1a0961

View File

@ -66,8 +66,8 @@ describe('Application update test', function () {
var backups;
it('can list the backups', function () {
backups = cloudron.listAppBackups(appId, APP_ID + '@' + APP_NEW_VERSION);
assert(backups.length).to.be(1);
assert(backups[0].version).to.be(APP_OLD_VERSION);
assert.strictEqual(backups.length, 1);
assert.strictEqual(backups[0].version, APP_OLD_VERSION);
});
it('can restore app to previous version', function () {