Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/util/swipe.spec.js')
-rw-r--r--js/tests/unit/util/swipe.spec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tests/unit/util/swipe.spec.js b/js/tests/unit/util/swipe.spec.js
index 054aab6958..614f83e538 100644
--- a/js/tests/unit/util/swipe.spec.js
+++ b/js/tests/unit/util/swipe.spec.js
@@ -85,7 +85,7 @@ describe('Swipe', () => {
defineDocumentElementOntouchstart()
// eslint-disable-next-line no-new
new Swipe(swipeEl, {
- leftCallback: () => {
+ leftCallback() {
expect(spyRight).not.toHaveBeenCalled()
restorePointerEvents()
resolve()
@@ -107,7 +107,7 @@ describe('Swipe', () => {
defineDocumentElementOntouchstart()
// eslint-disable-next-line no-new
new Swipe(swipeEl, {
- rightCallback: () => {
+ rightCallback() {
expect(spyLeft).not.toHaveBeenCalled()
restorePointerEvents()
resolve()
@@ -190,7 +190,7 @@ describe('Swipe', () => {
defineDocumentElementOntouchstart()
// eslint-disable-next-line no-new
new Swipe(swipeEl, {
- rightCallback: () => {
+ rightCallback() {
deleteDocumentElementOntouchstart()
expect().nothing()
resolve()
@@ -215,7 +215,7 @@ describe('Swipe', () => {
defineDocumentElementOntouchstart()
// eslint-disable-next-line no-new
new Swipe(swipeEl, {
- leftCallback: () => {
+ leftCallback() {
expect().nothing()
deleteDocumentElementOntouchstart()
resolve()