node tests: Use zrequire in drafts.js.

This commit is contained in:
Steve Howell 2017-11-08 08:12:12 -08:00 committed by Tim Abbott
parent 15e21f0cd1
commit f6f227d089
1 changed files with 3 additions and 5 deletions

View File

@ -1,11 +1,9 @@
zrequire('localstorage');
zrequire('drafts');
set_global('$', global.make_zjquery());
set_global('window', {});
add_dependencies({
localstorage: 'js/localstorage',
drafts: 'js/drafts',
});
var ls_container = {};
set_global('localStorage', {
getItem: function (key) {