Skip to content

Commit

Permalink
feat(cmd/new): init ts and js test code
Browse files Browse the repository at this point in the history
  • Loading branch information
zcong1993 committed Nov 17, 2020
1 parent 67505d5 commit 98b10b4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cmd/new/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ var (
* @frontendId {{ .FrontendId }}
*/
{{ .Code }}
export {{ .Code }}
`
testCodeStrTs = `
it('solve_{{ .Index }} should pass', () => {})
`
testCodeStrTs = ""
)

var (
Expand All @@ -191,5 +193,7 @@ var (
{{ .Code }}
`
testCodeStrJs = ""
testCodeStrJs = `
it('solve_{{ .Index }} should pass', () => {})
`
)

0 comments on commit 98b10b4

Please sign in to comment.