Skip to content

Commit 4a4a90a

Browse files
committed
fix test
1 parent ff7adb5 commit 4a4a90a

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

tests/acceptance/gist-test.js

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module('Acceptance | gist', function(hooks) {
149149
assert.deepEqual(columnFiles, [jsFile, hbsFile], 'Added files are displayed');
150150
});
151151

152-
test('component without hyphen fails', async function(assert) {
152+
test('ember component without hyphen fails', async function(assert) {
153153
assert.expect(2);
154154

155155
let called = false;
@@ -159,7 +159,32 @@ module('Acceptance | gist', function(hooks) {
159159
};
160160
promptValue = "components/some-dir/mycomp";
161161

162-
await visit('/');
162+
await runGist([
163+
{
164+
filename: 'application.template.hbs',
165+
content: 'hello world!'
166+
},
167+
{
168+
filename: 'twiddle.json',
169+
content: `{
170+
"version": "0.17.0",
171+
"EmberENV": {
172+
"FEATURES": {}
173+
},
174+
"options": {
175+
"use_pods": false,
176+
"enable-testing": false
177+
},
178+
"dependencies": {
179+
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
180+
"ember": "3.12.1",
181+
"ember-template-compiler": "3.12.1",
182+
"ember-testing": "3.12.1"
183+
},
184+
"addons": {}
185+
}`
186+
}
187+
]);
163188
await click('.add-component-link');
164189
await click(firstFilePicker());
165190
assert.ok(called, "alert was called");

0 commit comments

Comments
 (0)