Skip to content

Commit 7f1496b

Browse files
committed
Replace deprecated notEqual() function with not()
1 parent e820f9d commit 7f1496b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/core/alignment-pattern.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ test('Alignment pattern - Positions', function (t) {
7070
// For each coord value check if it's present in the expected coords table
7171
pos.forEach(function (position) {
7272
position.forEach(function (coord) {
73-
t.notEqual(expectedPos.indexOf(coord), -1, 'Should return valid coord value')
73+
t.not(expectedPos.indexOf(coord), -1, 'Should return valid coord value')
7474
})
7575
})
7676
}

test/unit/core/reed-solomon-encoder.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test('Reed-Solomon encoder', function (t) {
2020
t.ok(genPoly, 'Generator polynomial should be defined')
2121

2222
enc.initialize(3)
23-
t.notEqual(enc.genPoly, genPoly, 'Should reinitialize the generator polynomial')
23+
t.not(enc.genPoly, genPoly, 'Should reinitialize the generator polynomial')
2424

2525
enc = new RS(0)
2626
t.notOk(enc.genPoly, 'Should not create a generator polynomial if degree is 0')

0 commit comments

Comments
 (0)