mirror of
https://github.com/Shopify/draggable.git
synced 2025-12-08 20:15:56 +00:00
fix a eslint error
This commit is contained in:
parent
23314bb577
commit
dc51c22f38
@ -34,7 +34,7 @@
|
||||
"watch": "node scripts/watch.js",
|
||||
"prepare": "yarn build:development",
|
||||
"prepublishOnly": "yarn build:production",
|
||||
"lint": "eslint ./src --max-warnings 0",
|
||||
"lint": "eslint ./src ./scripts --max-warnings 0",
|
||||
"esdoc": "esdoc -c esdoc.json",
|
||||
"test": "jest --config config.json",
|
||||
"test-ci": "jest --config config.json --coverage && codecov",
|
||||
|
||||
@ -2,7 +2,9 @@ function toHaveTriggeredSensorEvent(received, expectedEventName, count) {
|
||||
let triggered = false;
|
||||
let callCount = 0;
|
||||
function callback() {
|
||||
count !== undefined && (callCount = callCount + 1);
|
||||
if (count !== undefined) {
|
||||
callCount++;
|
||||
}
|
||||
triggered = true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user