Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if(typeof(define) !== 'function') {
var define = require('amdefine').define;
}
define(['requirejs', 'localStorage'], function(requirejs, localStorage) {
global.localStorage = localStorage;
var suites = [];
suites.push({
name: "wireClient suite",
desc: "the wireClient holds storage information and queries the storage",
setup: function(env, test) {
requirejs([
'./src/lib/wireClient'
], function(wireClient) {
env.wireClient = wireClient;
test.result(true);
if(typeof(define) === 'undefined') {
var defined = require('amdefine').define;
}
define(['requirejs', 'localStorage'], function(requirejs, localStorage) {
var suites = [];
global.localStorage = localStorage;
suites.push({
name: "Without connecting",
desc: "using remoteStorage methods prior to connecting to a server",
setup: function(env, test) {
requirejs([
'./src/remoteStorage',
'./test/helper/root-module',
'./src/lib/store'
], function(remoteStorage, root, store) {