Skip to content

Commit b076645

Browse files
committed
test(wtr): remove unused matcher
1 parent 0773038 commit b076645

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

packages/@lwc/integration-karma/test/api/getComponentDef/index.spec.js

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,6 @@ function testInvalidComponentConstructor(name, ctor) {
1717
});
1818
}
1919

20-
beforeAll(function () {
21-
const getNormalizedFunctionAsString = (fn) => fn.toString().replace(/(\s|\n)/g, '');
22-
23-
jasmine.addMatchers({
24-
toEqualWireSettings: function () {
25-
return {
26-
compare: function (actual, expected) {
27-
Object.keys(actual).forEach((currentKey) => {
28-
const normalizedActual = Object.assign({}, actual[currentKey], {
29-
config: getNormalizedFunctionAsString(actual[currentKey].config),
30-
});
31-
32-
const normalizedExpected = Object.assign({}, expected[currentKey], {
33-
config: getNormalizedFunctionAsString(
34-
expected[currentKey].config || function () {}
35-
),
36-
});
37-
38-
expect(normalizedActual).toEqual(normalizedExpected);
39-
});
40-
41-
return {
42-
pass: true,
43-
};
44-
},
45-
};
46-
},
47-
});
48-
});
49-
5020
testInvalidComponentConstructor('null', null);
5121
testInvalidComponentConstructor('undefined', undefined);
5222
testInvalidComponentConstructor('String', 'component');

packages/@lwc/integration-not-karma/configs/integration.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export default {
99
'test/**/*.spec.js',
1010
'!test/accessibility/synthetic-cross-root-aria/index.spec.js',
1111
'!test/api/freezeTemplate/index.spec.js',
12-
'!test/api/getComponentDef/index.spec.js',
1312
'!test/component/LightningElement.addEventListener/index.spec.js',
1413
'!test/component/native-vs-synthetic-lifecycle/index.spec.js',
1514
'!test/custom-elements-registry/index.spec.js',

0 commit comments

Comments
 (0)