We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9fdbbe commit 31baa28Copy full SHA for 31baa28
test/test.js
@@ -238,6 +238,18 @@ describe('CrossStorageClient', function() {
238
})['catch'](done);
239
});
240
241
+ it('can set JSON objects as the value', function(done) {
242
+ var key = 'key1';
243
+ var str = JSON.stringify({foo: 'bar'});
244
+
245
+ storage.onConnect()
246
+ .then(setGet(key, str))
247
+ .then(function(res) {
248
+ expect(res).to.eql(str);
249
+ done();
250
+ })['catch'](done);
251
+ });
252
253
it('can overwrite existing values', function(done) {
254
var key = 'key1';
255
var value = 'new';
0 commit comments