summaryrefslogtreecommitdiff
path: root/test/object-property-accessor.test.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-04 18:20:05 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-04 18:23:05 -0500
commitdcddbee07e20163ae167dd67fe58f0776f9acb64 (patch)
tree4a55c4bd42859f7bebae9d9cb31c6ae5fa0e3f9a /test/object-property-accessor.test.js
parent4b80a486181b902f3b1e089b584818ce725a91be (diff)
Update how ts comments are handled
Diffstat (limited to 'test/object-property-accessor.test.js')
-rw-r--r--test/object-property-accessor.test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/object-property-accessor.test.js b/test/object-property-accessor.test.js
index 4f1fa87b..4d50b1e9 100644
--- a/test/object-property-accessor.test.js
+++ b/test/object-property-accessor.test.js
@@ -334,7 +334,7 @@ function testGetPathString2() {
];
for (const [pathArray, message] of data) {
- // @ts-ignore - Throwing is expected
+ // @ts-expect-error - Throwing is expected
expect(() => ObjectPropertyAccessor.getPathString(pathArray)).toThrow(message);
}
});
@@ -424,7 +424,7 @@ function testHasProperty() {
];
for (const [object, property, expected] of data) {
- // @ts-ignore - Ignore potentially property types
+ // @ts-expect-error - Ignore potentially property types
expect(ObjectPropertyAccessor.hasProperty(object, property)).toStrictEqual(expected);
}
});
@@ -449,7 +449,7 @@ function testIsValidPropertyType() {
];
for (const [object, property, expected] of data) {
- // @ts-ignore - Ignore potentially property types
+ // @ts-expect-error - Ignore potentially property types
expect(ObjectPropertyAccessor.isValidPropertyType(object, property)).toStrictEqual(expected);
}
});