diff options
author | Johann-S <johann.servoire@gmail.com> | 2020-06-17 11:45:07 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2020-06-17 16:45:36 +0300 |
commit | 088c727a31fd5a700f1d0024fef834a1720c9692 (patch) | |
tree | ef0227026fa349204c474b8897f2f2421947bfdb /js/tests/unit/dom | |
parent | 5ad43fec83c6cb4bd2381c02e3903ad1a5eda0db (diff) |
data: reword storage key in dom
Diffstat (limited to 'js/tests/unit/dom')
-rw-r--r-- | js/tests/unit/dom/data.spec.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/tests/unit/dom/data.spec.js b/js/tests/unit/dom/data.spec.js index ab3240b9bb..c80f32db0f 100644 --- a/js/tests/unit/dom/data.spec.js +++ b/js/tests/unit/dom/data.spec.js @@ -15,7 +15,7 @@ describe('Data', () => { }) describe('setData', () => { - it('should set data in an element by adding a key attribute', () => { + it('should set data in an element by adding a bsKey attribute', () => { fixtureEl.innerHTML = '<div></div>' const div = fixtureEl.querySelector('div') @@ -24,7 +24,7 @@ describe('Data', () => { } Data.setData(div, 'test', data) - expect(div.key).toBeDefined() + expect(div.bsKey).toBeDefined() }) it('should change data if something is already stored', () => { @@ -40,7 +40,7 @@ describe('Data', () => { data.test = 'bsData2' Data.setData(div, 'test', data) - expect(div.key).toBeDefined() + expect(div.bsKey).toBeDefined() }) }) @@ -104,11 +104,11 @@ describe('Data', () => { Data.setData(div, 'test', data) - expect(div.key).toBeDefined() + expect(div.bsKey).toBeDefined() Data.removeData(div, 'test2') - expect(div.key).toBeDefined() + expect(div.bsKey).toBeDefined() }) it('should remove data if something is stored', () => { @@ -121,11 +121,11 @@ describe('Data', () => { Data.setData(div, 'test', data) - expect(div.key).toBeDefined() + expect(div.bsKey).toBeDefined() Data.removeData(div, 'test') - expect(div.key).toBeUndefined() + expect(div.bsKey).toBeUndefined() }) }) }) |