diff --git a/ember-scoped-css/src/build/template-plugin.js b/ember-scoped-css/src/build/template-plugin.js index 943f7bcd..6275ffe9 100644 --- a/ember-scoped-css/src/build/template-plugin.js +++ b/ember-scoped-css/src/build/template-plugin.js @@ -129,41 +129,53 @@ export function createPlugin(config) { /** * We only allow a scoped + + ; + `); + + expect(templateContentsOf(output)).toMatchInlineSnapshot(` + [ + "
hi
+ ", + ] + `); + expect(virtualImportUrlsOf(output)).toMatchInlineSnapshot(` + [ + "./e65d154a1___css-68ede36d709bfa7f8a2994e1702ef010.ember-scoped.css?css=%0A%20%20%20%20%20%20%20%20%20%20.scoped%20%7B%20color%3A%20blue%3B%20%7D%0A%20%20%20%20%20%20%20%20", + ] + `); + }); + + it('refuses a second + + ; + `); + + await expect(build).rejects.toThrow( + /Only one