Skip to content

Commit

Permalink
fix tests under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron committed Apr 13, 2023
1 parent 62e3b64 commit 0fe98f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands/api-mesh/__tests__/create.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ governing permissions and limitations under the License.
*/

const mockConsoleCLIInstance = {};

const path = require('node:path');
const CreateCommand = require('../create');
const sampleCreateMeshConfig = require('../../__fixtures__/sample_mesh.json');
const { initSdk, initRequestId, promptConfirm } = require('../../../helpers');
Expand Down Expand Up @@ -170,7 +170,7 @@ describe('create command tests', () => {
expect(logSpy.mock.calls).toMatchInlineSnapshot(`
[
[
"ENOENT: no such file or directory, open 'dummy_file_path'",
"ENOENT: no such file or directory, open '${path.resolve('dummy_file_path')}'",
],
]
`);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/api-mesh/source/__tests__/install.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('source:install command tests', () => {
await InstallCommand.run(['test-03', '-f=notexist.json']).catch(err => {
expect(err.message).toEqual(
`Something went wrong trying to read the variables file.` +
`\nENOENT: no such file or directory, open 'notexist.json'`,
`\nENOENT: no such file or directory, open '${path.resolve('notexist.json')}'`,
);
});
});
Expand Down

0 comments on commit 0fe98f2

Please sign in to comment.