diff options
| author | XhmikosR <[email protected]> | 2021-09-11 21:56:28 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2021-09-28 19:09:04 +0300 |
| commit | a74f33c40649711293a009ada8b7c21330a999a5 (patch) | |
| tree | bc0135f3bcfd45ed9a0a140038cd077e8e3c2317 /js/tests/unit/util/index.spec.js | |
| parent | a82d31f4329c4dd8fabf258d807917dfed4dcca1 (diff) | |
| download | bootstrap-main-xmr-js-wip.tar.xz bootstrap-main-xmr-js-wip.zip | |
Prefer using function expressionsmain-xmr-js-wip
Diffstat (limited to 'js/tests/unit/util/index.spec.js')
| -rw-r--r-- | js/tests/unit/util/index.spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/util/index.spec.js b/js/tests/unit/util/index.spec.js index 38e94dc6b..2563aad8f 100644 --- a/js/tests/unit/util/index.spec.js +++ b/js/tests/unit/util/index.spec.js @@ -625,9 +625,9 @@ describe('Util', () => { }) it('should define a plugin on the jQuery instance', () => { - const pluginMock = function () {} + const pluginMock = () => {} pluginMock.NAME = 'test' - pluginMock.jQueryInterface = function () {} + pluginMock.jQueryInterface = () => {} Util.defineJQueryPlugin(pluginMock) expect(fakejQuery.fn.test).toBe(pluginMock.jQueryInterface) |
