diff options
author | Mike Gerwitz <gerwitzm@lovullo.com> | 2017-01-27 12:34:22 -0500 |
---|---|---|
committer | Mike Gerwitz <gerwitzm@lovullo.com> | 2017-01-30 00:29:25 -0500 |
commit | 282c0acf54d9b21841cbf2c8299ced705765141c (patch) | |
tree | d660f2cb637dca5bb8ae7b592898683e3fa791d5 /test | |
parent | b62673791b176f2f06b902f1c576b78cea3fdfa5 (diff) | |
download | liza-282c0acf54d9b21841cbf2c8299ced705765141c.tar.gz liza-282c0acf54d9b21841cbf2c8299ced705765141c.tar.bz2 liza-282c0acf54d9b21841cbf2c8299ced705765141c.zip |
Store#clear to return self
* src/store/MemoryStore.js (clear): Promise resolve to self.
* src/store/Store.js (clear): Update docblock.
* test/store/MemoryStoreTest.js: Update test case accordingly.
DEV-2296
Diffstat (limited to 'test')
-rw-r--r-- | test/store/MemoryStoreTest.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/store/MemoryStoreTest.js b/test/store/MemoryStoreTest.js index 452dbbb..5dcc332 100644 --- a/test/store/MemoryStoreTest.js +++ b/test/store/MemoryStoreTest.js @@ -103,6 +103,16 @@ describe( 'store.MemoryStore', () => ); } ); } ); + + + it( 'returns self with promise', () => + { + const sut = Sut(); + + return expect( + sut.clear() + ).to.eventually.equal( sut ); + } ); } ); |