refactor(scripts): Removed tests involving fetching of uuid

This commit is contained in:
hritvi 2019-01-15 00:37:34 +05:30
Родитель e5bea37201
Коммит fbded65567
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -75,15 +75,16 @@ define(function (require, exports, module) {
assert.equal(uniqueUserId.get('uniqueUserId'), 'stored in uniqueUserId');
});
it('migrates data stored in `localStorage.uuid` to `localStorage.uniqueUserId`', function () {
it('does not migrates data stored in `localStorage.uuid` to `localStorage.uniqueUserId`', function () {
var storage = Storage.factory('localStorage', windowMock);
var uniqueUserId = 'originally stored in uuid';
storage.set('uuid', uniqueUserId);
createUniqueUserId();
assert.equal(storage.get('uniqueUserId'), uniqueUserId);
assert.isUndefined(storage.get('uuid'));
assert.equal(storage.get('uuid'), uniqueUserId);
assert.notEqual(storage.get('uuid'), storage.get('uniqueUserId'));
assert.ok(storage.get('uniqueUserId'));
});
});
});