Skip to content

Commit 6868891

Browse files
author
David Tang
committed
test cleanup
1 parent 8d55843 commit 6868891

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/validators/sometimes-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test('the condition is invoked with the changes and content for each validator',
5151
let condition = sinon.spy();
5252

5353
let validators = validateSometimes([validatorA, validatorB], condition);
54-
validators.map((validator) => {
54+
validators.forEach((validator) => {
5555
return validator(key, newValue, oldValue, changes, content);
5656
});
5757
assert.equal(condition.callCount, 2);
@@ -73,7 +73,7 @@ test('each validator is invoked with key, newValue, oldValue, changes, and conte
7373
let condition = sinon.stub().returns(true);
7474
let validators = validateSometimes([validatorA, validatorB], condition);
7575

76-
validators.map((validator) => {
76+
validators.forEach((validator) => {
7777
return validator(key, newValue, oldValue, changes, content);
7878
});
7979

0 commit comments

Comments
 (0)