mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) rm option: localStorage
This commit is contained in:
parent
62f166f15c
commit
28892b3933
10 changed files with 12 additions and 136 deletions
|
|
@ -222,31 +222,6 @@ test('cloudcmd: getIndexPath: development', (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: deprecated: localStorage', (t) => {
|
||||
const config = {
|
||||
localStorage: false
|
||||
};
|
||||
|
||||
const {
|
||||
deprecate: originalDeprecate
|
||||
} = util;
|
||||
|
||||
const deprecate = sinon
|
||||
.stub()
|
||||
.returns(noop);
|
||||
|
||||
util.deprecate = deprecate;
|
||||
|
||||
cloudcmd({
|
||||
config
|
||||
});
|
||||
|
||||
util.deprecate = originalDeprecate;
|
||||
|
||||
t.ok(deprecate.called, 'should call deprecate');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: deprecated: one panel mode', (t) => {
|
||||
const config = {
|
||||
onePanelMode: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue