Skip to content

Commit 09ed22d

Browse files
committed
Switched toMatchObject calls to use toEqual
1 parent 243a7c1 commit 09ed22d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/jest/__tests__/utils/utils.ConfigUtils.ts.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
getSelectOptions, saveConfigurationFile
77
} from '../../../../src/utils/ConfigUtils';
88
import path from 'path';
9-
import { test } from '@jest/globals';
9+
import { test, expect, describe, beforeAll, beforeEach } from '@jest/globals';
1010

1111
describe('buildConfigurationFileFromPath', () => {
1212

@@ -44,7 +44,7 @@ describe('buildConfigurationFileFromPath', () => {
4444
expect(sectionNames).toStrictEqual(['Section Name']);
4545

4646
const section = configurationFile.sections[0];
47-
expect(section.entries).toMatchObject([
47+
expect(section.entries).toEqual([
4848
{
4949
entryName: 'FirstKey',
5050
value: 'Identifier',
@@ -95,7 +95,7 @@ describe('buildConfigurationFileFromPath', () => {
9595
expect(sectionNames).toStrictEqual(['Section Name']);
9696

9797
const section = configurationFile.sections[0];
98-
expect(section.entries).toMatchObject([
98+
expect(section.entries).toEqual([
9999
{
100100
entryName: 'Key',
101101
value: 'Value',
@@ -221,7 +221,7 @@ describe('getSelectOptions', () => {
221221
],
222222
};
223223

224-
expect(getSelectOptions(configurationEntry)).toMatchObject(['valueOne', 'valueTwo', 'valueThree']);
224+
expect(getSelectOptions(configurationEntry)).toEqual(['valueOne', 'valueTwo', 'valueThree']);
225225
});
226226

227227
test('boolean', () => {

0 commit comments

Comments
 (0)