From dfd73987e348f6659022b6de8e015944c5f9e4cd Mon Sep 17 00:00:00 2001 From: Conduitry Date: Fri, 17 Mar 2017 20:55:10 -0400 Subject: [PATCH] add unit test --- .../samples/deconflict-non-helpers/_config.js | 8 ++++++++ .../samples/deconflict-non-helpers/main.html | 17 +++++++++++++++++ .../samples/deconflict-non-helpers/module.js | 4 ++++ 3 files changed, 29 insertions(+) create mode 100644 test/generator/samples/deconflict-non-helpers/_config.js create mode 100644 test/generator/samples/deconflict-non-helpers/main.html create mode 100644 test/generator/samples/deconflict-non-helpers/module.js diff --git a/test/generator/samples/deconflict-non-helpers/_config.js b/test/generator/samples/deconflict-non-helpers/_config.js new file mode 100644 index 0000000000..978e4c27e3 --- /dev/null +++ b/test/generator/samples/deconflict-non-helpers/_config.js @@ -0,0 +1,8 @@ +export default { + html: `ABCD`, + + test ( assert, component ) { + assert.equal( component.get( 'compute' ), 'ABCD' ); + component.destroy(); + } +}; diff --git a/test/generator/samples/deconflict-non-helpers/main.html b/test/generator/samples/deconflict-non-helpers/main.html new file mode 100644 index 0000000000..8541b090f9 --- /dev/null +++ b/test/generator/samples/deconflict-non-helpers/main.html @@ -0,0 +1,17 @@ +{{compute}} + + diff --git a/test/generator/samples/deconflict-non-helpers/module.js b/test/generator/samples/deconflict-non-helpers/module.js new file mode 100644 index 0000000000..ff4e71e251 --- /dev/null +++ b/test/generator/samples/deconflict-non-helpers/module.js @@ -0,0 +1,4 @@ +export const addCss = 'a'; +export const addedCss = 'b'; +export const applyComputations = 'c'; +export const renderMainFragment = 'd';