Skip to content

Commit 98b10b4

Browse files
committed
feat(cmd/new): init ts and js test code
1 parent 67505d5 commit 98b10b4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cmd/new/main.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,11 @@ var (
173173
* @frontendId {{ .FrontendId }}
174174
*/
175175
176-
{{ .Code }}
176+
export {{ .Code }}
177+
`
178+
testCodeStrTs = `
179+
it('solve_{{ .Index }} should pass', () => {})
177180
`
178-
testCodeStrTs = ""
179181
)
180182

181183
var (
@@ -191,5 +193,7 @@ var (
191193
192194
{{ .Code }}
193195
`
194-
testCodeStrJs = ""
196+
testCodeStrJs = `
197+
it('solve_{{ .Index }} should pass', () => {})
198+
`
195199
)

0 commit comments

Comments
 (0)