Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit a351649

Browse files
author
Gabriel Schulhof
committed
Tests: Fix incorrect if-conditions
1 parent c405e32 commit a351649

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/Create - Resource (Direct)/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function getResources( device ) {
5555

5656
// Perform the create() method on a device if it's the right device
5757
function tryDevice( device ) {
58-
if ( !device.name === "test-device-" + process.argv[ 2 ] ) {
58+
if ( device.name !== "test-device-" + process.argv[ 2 ] ) {
5959
return;
6060
}
6161

tests/Create - Resource/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function getResources( device ) {
5757

5858
// Perform the create() method on a device if it's the right device
5959
function tryDevice( device ) {
60-
if ( !device.name === "test-device-" + process.argv[ 2 ] ) {
60+
if ( device.name !== "test-device-" + process.argv[ 2 ] ) {
6161
return;
6262
}
6363

tests/Delete - Resource/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ console.log( JSON.stringify( { assertionCount: 1 } ) );
1818

1919
// Perform the create() method on a device if it's the right device
2020
function tryDevice( device ) {
21-
if ( !device.name === "test-device-" + process.argv[ 2 ] ) {
21+
if ( device.name !== "test-device-" + process.argv[ 2 ] ) {
2222
return;
2323
}
2424

0 commit comments

Comments
 (0)