Skip to content

Commit 8f26cca

Browse files
authored
Fix JS snippet syntax highlighting (#178)
In [this section of the Service Injection page](https://guides.emberjs.com/release/tutorial/part-2/service-injection/#toc_why-we-cant-test-windowlocationhref), the code snippet for the `super-rentals-test.js` file lacks syntax highlighting because the snippet language was set to Handlebars when it should be JavaScript: <img width="755" alt="Screen Shot 2021-02-14 at 3 29 28 AM" src="https://user-images.githubusercontent.com/588690/107874171-e9a37f00-6e74-11eb-9c69-9ecdd2ff0331.png">
1 parent d09b653 commit 8f26cca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/markdown/tutorial/part-2/10-service-injection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ git add tests/acceptance/super-rentals-test.js
185185
186186
To be sure, let's add some tests! Let's start with an acceptance test:
187187
188-
```run:file:patch lang=handlebars cwd=super-rentals filename=tests/acceptance/super-rentals-test.js
188+
```run:file:patch lang=js cwd=super-rentals filename=tests/acceptance/super-rentals-test.js
189189
@@ -1,3 +1,3 @@
190190
import { module, test } from 'qunit';
191191
-import { click, visit, currentURL } from '@ember/test-helpers';

0 commit comments

Comments
 (0)