introduce built in asserts, working on TopNav, correcting some docs

This commit is contained in:
El RIDO
2018-03-01 06:43:30 +01:00
parent cb2af8687e
commit ce6764e97d
8 changed files with 183 additions and 17 deletions

View File

@@ -87,9 +87,10 @@ describe('CryptTool', function () {
'MZtmnYpGAtAPg7AUG"}'
);
if (!paste1.includes('securely packed in iron') || !paste2.includes('Sol is right')) {
throw Error('v1 (SJCL based) pastes could not be deciphered');
}
assert.ok(
paste1.includes('securely packed in iron') &&
paste2.includes('Sol is right')
);
}
);
@@ -152,9 +153,10 @@ describe('CryptTool', function () {
jsdom();
delete require.cache[require.resolve('../privatebin')];
require('../privatebin');
if (!paste1.includes('securely packed in iron') || !paste2.includes('Sol is right')) {
throw Error('v1 (SJCL based) pastes could not be deciphered');
}
assert.ok(
paste1.includes('securely packed in iron') &&
paste2.includes('Sol is right')
);
}
);
});