Skip to content

Commit d41409f

Browse files
Anwesha NaskarAnwesha Naskar
authored andcommitted
test(visual-recognition test): modifies test to be compatible with node 4
1 parent 8b9feab commit d41409f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/test.visual_recognition.custom_classifiers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ describe('visual_recognition_integration_custom_classifiers', function() {
227227
assert.equal(result.images[0].classifiers[0].classifier_id, classifier_id);
228228
assert(
229229
result.images[0].classifiers[0].classes.every(function(cl) {
230-
if (['beach', 'water', 'still', 'forest'].includes(cl.class)) {
230+
if (['beach', 'water', 'still', 'forest'].indexOf(cl.class) !== -1) {
231231
return true;
232232
} else {
233233
logit('Rogue class ' + cl.class + ' found.');

0 commit comments

Comments
 (0)