Skip to content

Commit

Permalink
attempt to fix tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeart committed Apr 27, 2023
1 parent 9073166 commit 03e4b93
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/acceptance/cli-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,12 @@ describe('ember-template-lint executable', function () {
describe('multiplatform config resolve', function () {
describe('given absolute config path and path to single file without errors', function () {
it('should exit without error and any console output', async function () {
project.setConfig({
await project.setConfig({
rules: {
'no-bare-strings': false,
},
});
project.write({
await project.write({
app: {
templates: {
'application.hbs':
Expand All @@ -502,7 +502,12 @@ describe('ember-template-lint executable', function () {
expect(path.isAbsolute(configPath)).toBeTruthy();
expect(fs.existsSync(configPath)).toBeTruthy();

let result = await run(['app/templates/application.hbs', '--config-path', configPath]);
let result = await runBin(
'--filename',
'app/templates/application.hbs',
'--config-path',
configPath
);

expect(result.exitCode).toEqual(0);
expect(result.stdout).toBeFalsy();
Expand Down

0 comments on commit 03e4b93

Please sign in to comment.