Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Nov 11, 2024
1 parent 1a177ca commit 6a634f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Application from '@ember/application';
import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import config from 'docs/config/environment';
// @ts-expect-error no types shipped from prismjs
import Prism from 'prismjs';
import 'prismjs/plugins/normalize-whitespace/prism-normalize-whitespace';
import 'prismjs/components/prism-css';
Expand Down
6 changes: 4 additions & 2 deletions docs/tests/integration/components/code-block-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ module('Integration | Component | code-block', function (hooks) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });

await render(hbs`<CodeBlock @language="js" @code="console.log('hello');" />`);
await render(
hbs`<CodeBlock @language="js" @code="console.log('hello');" />`,
);

assert.dom().hasText('console.log(\'hello\');');
assert.dom().hasText("console.log('hello');");
});
});
6 changes: 4 additions & 2 deletions docs/tests/integration/components/code-inline-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ module('Integration | Component | code-inline', function (hooks) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });

await render(hbs`<CodeInline @language="js" @code="console.log('hello');" />`);
await render(
hbs`<CodeInline @language="js" @code="console.log('hello');" />`,
);

assert.dom().hasText('console.log(\'hello\');');
assert.dom().hasText("console.log('hello');");
});
});

0 comments on commit 6a634f5

Please sign in to comment.