This repository was archived by the owner on Aug 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +26
-20
lines changed Expand file tree Collapse file tree 3 files changed +26
-20
lines changed Original file line number Diff line number Diff line change 1
- import { expect , describe } from 'vitest'
1
+ import { expect , describe , it } from 'vitest'
2
2
import { format } from './format'
3
3
4
4
const tree = {
@@ -25,10 +25,12 @@ const tree = {
25
25
}
26
26
27
27
describe ( 'format' , async ( ) => {
28
- expect (
29
- await format ( {
30
- target : 'js' ,
31
- tree,
32
- } )
33
- ) . toBe ( `const answer = 42\n` )
28
+ it ( 'formats basic JS' , async ( ) => {
29
+ expect (
30
+ await format ( {
31
+ target : 'js' ,
32
+ tree,
33
+ } )
34
+ ) . toBe ( `const answer = 42\n` )
35
+ } )
34
36
} )
Original file line number Diff line number Diff line change 1
- import { expect , describe } from 'vitest'
1
+ import { expect , describe , it } from 'vitest'
2
2
import { print } from './print'
3
3
4
4
const tree = {
@@ -25,10 +25,12 @@ const tree = {
25
25
}
26
26
27
27
describe ( 'print' , async ( ) => {
28
- expect (
29
- await print ( {
30
- target : 'js' ,
31
- tree,
32
- } )
33
- ) . toBe ( `const answer = 42;\n` )
28
+ it ( 'prints basic JS' , async ( ) => {
29
+ expect (
30
+ print ( {
31
+ target : 'js' ,
32
+ tree,
33
+ } )
34
+ ) . toBe ( `const answer = 42;\n` )
35
+ } )
34
36
} )
Original file line number Diff line number Diff line change 1
- import { expect , describe } from 'vitest'
1
+ import { expect , describe , it } from 'vitest'
2
2
import { snippetz } from './snippetz'
3
3
4
4
const tree = {
@@ -25,10 +25,12 @@ const tree = {
25
25
}
26
26
27
27
describe ( 'snippetz' , async ( ) => {
28
- const snippet = await snippetz ( ) . get ( {
29
- target : 'js' ,
30
- tree,
31
- } )
28
+ it ( 'formats basic JS' , async ( ) => {
29
+ const snippet = await snippetz ( ) . get ( {
30
+ target : 'js' ,
31
+ tree,
32
+ } )
32
33
33
- expect ( snippet ) . toBe ( `const answer = 42\n` )
34
+ expect ( snippet ) . toBe ( `const answer = 42\n` )
35
+ } )
34
36
} )
You can’t perform that action at this time.
0 commit comments