|
6 | 6 | getSelectOptions, saveConfigurationFile
|
7 | 7 | } from '../../../../src/utils/ConfigUtils';
|
8 | 8 | import path from 'path';
|
9 |
| -import { test } from '@jest/globals'; |
| 9 | +import { test, expect, describe, beforeAll, beforeEach } from '@jest/globals'; |
10 | 10 |
|
11 | 11 | describe('buildConfigurationFileFromPath', () => {
|
12 | 12 |
|
@@ -44,7 +44,7 @@ describe('buildConfigurationFileFromPath', () => {
|
44 | 44 | expect(sectionNames).toStrictEqual(['Section Name']);
|
45 | 45 |
|
46 | 46 | const section = configurationFile.sections[0];
|
47 |
| - expect(section.entries).toMatchObject([ |
| 47 | + expect(section.entries).toEqual([ |
48 | 48 | {
|
49 | 49 | entryName: 'FirstKey',
|
50 | 50 | value: 'Identifier',
|
@@ -95,7 +95,7 @@ describe('buildConfigurationFileFromPath', () => {
|
95 | 95 | expect(sectionNames).toStrictEqual(['Section Name']);
|
96 | 96 |
|
97 | 97 | const section = configurationFile.sections[0];
|
98 |
| - expect(section.entries).toMatchObject([ |
| 98 | + expect(section.entries).toEqual([ |
99 | 99 | {
|
100 | 100 | entryName: 'Key',
|
101 | 101 | value: 'Value',
|
@@ -221,7 +221,7 @@ describe('getSelectOptions', () => {
|
221 | 221 | ],
|
222 | 222 | };
|
223 | 223 |
|
224 |
| - expect(getSelectOptions(configurationEntry)).toMatchObject(['valueOne', 'valueTwo', 'valueThree']); |
| 224 | + expect(getSelectOptions(configurationEntry)).toEqual(['valueOne', 'valueTwo', 'valueThree']); |
225 | 225 | });
|
226 | 226 |
|
227 | 227 | test('boolean', () => {
|
|
0 commit comments