mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-24 07:20:45 -04:00
improving cleanup between tests in order to combat the frequent test failures seen recently
This commit is contained in:
parent
0ab06e34ec
commit
210870590c
3 changed files with 14 additions and 5 deletions
|
@ -72,7 +72,7 @@ describe('Model', function () {
|
|||
|
||||
describe('getPasteId', function () {
|
||||
this.timeout(30000);
|
||||
before(function () {
|
||||
beforeEach(function () {
|
||||
$.PrivateBin.Model.reset();
|
||||
cleanup();
|
||||
});
|
||||
|
@ -121,6 +121,11 @@ describe('Model', function () {
|
|||
|
||||
describe('getPasteKey', function () {
|
||||
this.timeout(30000);
|
||||
beforeEach(function () {
|
||||
$.PrivateBin.Model.reset();
|
||||
cleanup();
|
||||
});
|
||||
|
||||
jsc.property(
|
||||
'returns the fragment of the URL',
|
||||
jsc.nearray(common.jscA2zString()),
|
||||
|
@ -183,7 +188,7 @@ describe('Model', function () {
|
|||
});
|
||||
|
||||
describe('getTemplate', function () {
|
||||
before(function () {
|
||||
beforeEach(function () {
|
||||
$.PrivateBin.Model.reset();
|
||||
cleanup();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue