first commit
This commit is contained in:
14
ui/generators/new/util/unit.ejs.t
Normal file
14
ui/generators/new/util/unit.ejs.t
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
to: "src/utils/<%= h.changeCase.kebab(name) %>.unit.js"
|
||||
---
|
||||
<%
|
||||
const fileName = h.changeCase.kebab(name)
|
||||
const importName = h.changeCase.camel(fileName)
|
||||
%>import <%= importName %> from './<%= fileName %>'
|
||||
|
||||
describe('@utils/<%= fileName %>', () => {
|
||||
it('says hello', () => {
|
||||
const result = <%= importName %>()
|
||||
expect(result).toEqual('hello')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user