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 28d92b2 commit 1a177ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
1 change: 1 addition & 0 deletions docs/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import 'prismjs/components/prism-scss';
import 'prismjs/components/prism-javascript';
import 'prismjs/components/prism-handlebars';
import 'prismjs/components/prism-markup-templating';
// @ts-expect-error no types shipped from prismjs-glimmer
import { setup } from 'prismjs-glimmer';

import 'prismjs/themes/prism.css';
Expand Down
13 changes: 2 additions & 11 deletions docs/tests/integration/components/code-block-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,8 @@ 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 />`);
await render(hbs`<CodeBlock @language="js" @code="console.log('hello');" />`);

assert.dom().hasText('');

// Template block usage:
await render(hbs`
<CodeBlock>
template block text
</CodeBlock>
`);

assert.dom().hasText('template block text');
assert.dom().hasText('console.log(\'hello\');');
});
});
13 changes: 2 additions & 11 deletions docs/tests/integration/components/code-inline-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,8 @@ 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 />`);
await render(hbs`<CodeInline @language="js" @code="console.log('hello');" />`);

assert.dom().hasText('');

// Template block usage:
await render(hbs`
<CodeInline>
template block text
</CodeInline>
`);

assert.dom().hasText('template block text');
assert.dom().hasText('console.log(\'hello\');');
});
});

0 comments on commit 1a177ca

Please sign in to comment.