|
| 1 | +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html |
| 2 | + |
| 3 | +exports[`generates a \`.js\` acceptance-test 1`] = ` |
| 4 | +"import { currentURL, visit } from '@ember/test-helpers'; |
| 5 | +import { module, test } from 'qunit'; |
| 6 | +import { setupApplicationTest } from 'v2-addon/tests/helpers'; |
| 7 | +
|
| 8 | +module('Acceptance | foo', function (hooks) { |
| 9 | + setupApplicationTest(hooks); |
| 10 | +
|
| 11 | + test('it visits /foo', async function (assert) { |
| 12 | + await visit('/foo'); |
| 13 | +
|
| 14 | + assert.strictEqual(currentURL(), '/foo'); |
| 15 | + }); |
| 16 | +}); |
| 17 | +" |
| 18 | +`; |
| 19 | + |
| 20 | +exports[`generates a \`.js\` acceptance-test at a custom path 1`] = ` |
| 21 | +"import { currentURL, visit } from '@ember/test-helpers'; |
| 22 | +import { module, test } from 'qunit'; |
| 23 | +import { setupApplicationTest } from 'v2-addon/tests/helpers'; |
| 24 | +
|
| 25 | +module('Acceptance | foo', function (hooks) { |
| 26 | + setupApplicationTest(hooks); |
| 27 | +
|
| 28 | + test('it visits /foo', async function (assert) { |
| 29 | + await visit('/foo'); |
| 30 | +
|
| 31 | + assert.strictEqual(currentURL(), '/foo'); |
| 32 | + }); |
| 33 | +}); |
| 34 | +" |
| 35 | +`; |
| 36 | + |
| 37 | +exports[`generates a \`.ts\` acceptance-test 1`] = ` |
| 38 | +"import { currentURL, visit } from '@ember/test-helpers'; |
| 39 | +import { module, test } from 'qunit'; |
| 40 | +import { setupApplicationTest } from 'v2-addon/tests/helpers'; |
| 41 | +
|
| 42 | +module('Acceptance | foo', function (hooks) { |
| 43 | + setupApplicationTest(hooks); |
| 44 | +
|
| 45 | + test('it visits /foo', async function (assert) { |
| 46 | + await visit('/foo'); |
| 47 | +
|
| 48 | + assert.strictEqual(currentURL(), '/foo'); |
| 49 | + }); |
| 50 | +}); |
| 51 | +" |
| 52 | +`; |
| 53 | + |
| 54 | +exports[`generates a \`.ts\` acceptance-test at a custom path 1`] = ` |
| 55 | +"import { currentURL, visit } from '@ember/test-helpers'; |
| 56 | +import { module, test } from 'qunit'; |
| 57 | +import { setupApplicationTest } from 'v2-addon/tests/helpers'; |
| 58 | +
|
| 59 | +module('Acceptance | foo', function (hooks) { |
| 60 | + setupApplicationTest(hooks); |
| 61 | +
|
| 62 | + test('it visits /foo', async function (assert) { |
| 63 | + await visit('/foo'); |
| 64 | +
|
| 65 | + assert.strictEqual(currentURL(), '/foo'); |
| 66 | + }); |
| 67 | +}); |
| 68 | +" |
| 69 | +`; |
0 commit comments