diff options
Diffstat (limited to 'spec/frontend/admin/users/index_spec.js')
| -rw-r--r-- | spec/frontend/admin/users/index_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/admin/users/index_spec.js b/spec/frontend/admin/users/index_spec.js index 961fa96acdd..06dbadd6d3d 100644 --- a/spec/frontend/admin/users/index_spec.js +++ b/spec/frontend/admin/users/index_spec.js @@ -12,8 +12,8 @@ describe('initAdminUsersApp', () => { beforeEach(() => { el = document.createElement('div'); - el.dataset.users = JSON.stringify(users); - el.dataset.paths = JSON.stringify(paths); + el.setAttribute('data-users', JSON.stringify(users)); + el.setAttribute('data-paths', JSON.stringify(paths)); wrapper = createWrapper(initAdminUsersApp(el)); }); @@ -40,8 +40,8 @@ describe('initAdminUserActions', () => { beforeEach(() => { el = document.createElement('div'); - el.dataset.user = JSON.stringify(user); - el.dataset.paths = JSON.stringify(paths); + el.setAttribute('data-user', JSON.stringify(user)); + el.setAttribute('data-paths', JSON.stringify(paths)); wrapper = createWrapper(initAdminUserActions(el)); }); |
