Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2017-02-16 16:49:11 -0500
committerMike Gerwitz <gerwitzm@lovullo.com>2017-02-16 16:49:29 -0500
commiteefd268abf976d85343d44fa30972caecde40122 (patch)
tree89136c86bb05d57dc50c3b1125a7b87ddb73b5ae /test/validate
parente22aa2a88018737f1ce891004878419261588ed7 (diff)
downloadliza-eefd268abf976d85343d44fa30972caecde40122.tar.gz
liza-eefd268abf976d85343d44fa30972caecde40122.tar.bz2
liza-eefd268abf976d85343d44fa30972caecde40122.zip
Revert "DataValidator: Always clear store state"
This breaks everything. :x This reverts commit e0c2e4dc861d523c40b2d35a242e48b8b7c99662, reversing changes made to e610372c8443ba5c5e73ed0791e642d82772d5cd.
Diffstat (limited to 'test/validate')
-rw-r--r--test/validate/DataValidatorTest.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/test/validate/DataValidatorTest.js b/test/validate/DataValidatorTest.js
index 8a526be..e209a13 100644
--- a/test/validate/DataValidatorTest.js
+++ b/test/validate/DataValidatorTest.js
@@ -205,43 +205,6 @@ describe( 'DataValidator', () =>
} );
- [
- [],
- [ {} ],
- [ undefined ],
- [ undefined, {} ],
- [ undefined, undefined ],
- [ {}, undefined ],
- ].forEach( args => it( 'does not re-use previous store state', () =>
- {
- const stores = {
- store: MemoryStore(),
- bstore: sinon.createStubInstance( MemoryStore ),
- cstore: sinon.createStubInstance( MemoryStore ),
- };
-
- const { sut, getStore } = createStubs( {
- getStore: () => stores,
- } );
-
- const { bstore, cstore } = stores;
-
- const cleared = which =>
- {
- cleared[ which ] = true;
- return Promise.resolve();
- };
-
- bstore.clear = () => cleared( 'b' );
- cstore.clear = () => cleared( 'c' );
-
- return sut.validate.apply( sut, args )
- .then( () =>
- expect( cleared.b && cleared.c ).to.be.true
- );
- } ) );
-
-
// otherwise system might get into an unexpected state
it( 'queues concurrent validations', () =>
{