diff --git a/packages/@glimmer-workspace/integration-tests/test/keywords/if-test.ts b/packages/@glimmer-workspace/integration-tests/test/keywords/if-test.ts index f7a7eb773..bb3039ba5 100644 --- a/packages/@glimmer-workspace/integration-tests/test/keywords/if-test.ts +++ b/packages/@glimmer-workspace/integration-tests/test/keywords/if-test.ts @@ -1,34 +1,7 @@ import { defineComponent, jitSuite, RenderTest, test, tracked } from '../..'; -class LogTest extends RenderTest { - static suiteName = '{{log}} keyword'; - - originalLog?: () => void; - logCalls: unknown[] = []; - - beforeEach() { - /* eslint-disable no-console */ - this.originalLog = console.log; - console.log = (...args: unknown[]) => { - this.logCalls.push(...args); - /* eslint-enable no-console */ - }; - } - - afterEach() { - /* eslint-disable no-console */ - console.log = this.originalLog!; - /* eslint-enable no-console */ - } - - assertLog(values: unknown[]) { - this.assertHTML(''); - this.assert.strictEqual(this.logCalls.length, values.length); - - for (let i = 0, len = values.length; i < len; i++) { - this.assert.strictEqual(this.logCalls[i], values[i]); - } - } +class InlineIfTest extends RenderTest { + static suiteName = 'inline {{if}} keyword'; @test 'inline if can swap render components'() { @@ -57,4 +30,4 @@ class LogTest extends RenderTest { } } -jitSuite(LogTest); +jitSuite(InlineIfTest);