Skip to content

Commit

Permalink
test: add test for support boolean and array types in TS
Browse files Browse the repository at this point in the history
  • Loading branch information
webdiscus committed Feb 24, 2025
1 parent f9366ae commit 6cd2f55
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions test/ts/module-import-esnext/expected/index.out
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ Hello World!
 bgGray 
 bgCyanBright 
 bgWhiteBright 
true
false
true,false
7 changes: 6 additions & 1 deletion test/ts/module-import-esnext/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@ log(ansis.gray`gray`);
log(bgGray` bgGray `);

log(bgCyanBright.yellowBright` bgCyanBright `);
log(ansis.bgWhiteBright.italic` bgWhiteBright `);
log(ansis.bgWhiteBright.italic` bgWhiteBright `);

// support boolean and array types
log(ansis.red(true))
log(ansis.red(false))
log(ansis.red([true, false]))
3 changes: 3 additions & 0 deletions test/ts/module-import-node16/expected/index.out
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ Hello World!
 bgGray 
 bgCyanBright 
 bgWhiteBright 
true
false
true,false
7 changes: 6 additions & 1 deletion test/ts/module-import-node16/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,9 @@ log(ansis.gray`gray`);
log(bgGray` bgGray `);

log(bgCyanBright.yellowBright` bgCyanBright `);
log(ansis.bgWhiteBright.italic` bgWhiteBright `);
log(ansis.bgWhiteBright.italic` bgWhiteBright `);

// support boolean and array types
log(ansis.red(true))
log(ansis.red(false))
log(ansis.red([true, false]))

0 comments on commit 6cd2f55

Please sign in to comment.