This commit is contained in:
2024-05-17 18:02:49 +08:00
parent 8407d51fb6
commit b5264dc222
4056 changed files with 308094 additions and 41932 deletions

17
node_modules/store/plugins/defaults_test.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
module.exports = {
plugin: require('./defaults'),
setup: setup,
}
function setup(store) {
test('defaults', function() {
store.defaults({ foo: 'bar' })
assert(store.get('foo') == 'bar')
store.set('foo', 'bar2')
assert(store.get('foo') == 'bar2')
store.remove('foo')
assert(store.get('foo') == 'bar')
})
}