1- import { describe , expect , test } from 'vitest'
1+ import { describe , expect , it } from 'vitest'
22import { getLicense } from './utils'
33
44describe ( 'getLicense' , function ( ) {
5- test ( 'works with string-type license field' , function ( ) {
5+ it ( 'works with string-type license field' , function ( ) {
66 expect (
7788 name : 'foo' ,
@@ -12,7 +12,7 @@ describe('getLicense', function () {
1212 ) . toBe ( 'MIT' )
1313 } )
1414
15- test ( 'works with deprecated object-type license field' , function ( ) {
15+ it ( 'works with deprecated object-type license field' , function ( ) {
1616 expect (
17171818 name : 'foo' ,
@@ -25,7 +25,7 @@ describe('getLicense', function () {
2525 ) . toBe ( 'MIT' )
2626 } )
2727
28- test ( 'works with deprecated licenses field' , function ( ) {
28+ it ( 'works with deprecated licenses field' , function ( ) {
2929 expect (
30303131 name : 'foo' ,
@@ -44,7 +44,7 @@ describe('getLicense', function () {
4444 ) . toBe ( 'MIT' )
4545 } )
4646
47- test ( 'works with incorrect string-type licenses field' , function ( ) {
47+ it ( 'works with incorrect string-type licenses field' , function ( ) {
4848 expect (
49495050 name : 'foo' ,
@@ -54,7 +54,7 @@ describe('getLicense', function () {
5454 ) . toBe ( 'MIT' )
5555 } )
5656
57- test ( 'throws if license is missing' , function ( ) {
57+ it ( 'throws if license is missing' , function ( ) {
5858 expect ( ( ) =>
59596060 name : 'foo' ,
@@ -63,7 +63,7 @@ describe('getLicense', function () {
6363 ) . toThrow ( new Error ( 'Could not find license info for [email protected] ' ) ) 6464 } )
6565
66- test ( 'throws if license is invalid' , function ( ) {
66+ it ( 'throws if license is invalid' , function ( ) {
6767 expect ( ( ) =>
68686969 name : 'foo' ,
@@ -77,7 +77,7 @@ describe('getLicense', function () {
7777 )
7878 } )
7979
80- test ( 'throws if license is unacceptable' , function ( ) {
80+ it ( 'throws if license is unacceptable' , function ( ) {
8181 expect ( ( ) =>
8282 getLicense (
8383@@ -93,7 +93,7 @@ describe('getLicense', function () {
9393 ) . toThrow ( new Error ( 'Found unacceptable license "MIT" for [email protected] ' ) ) 9494 } )
9595
96- test ( 'allows overriding license values using exact version numbers' , function ( ) {
96+ it ( 'allows overriding license values using exact version numbers' , function ( ) {
9797 expect (
9898 getLicense (
9999@@ -112,7 +112,7 @@ describe('getLicense', function () {
112112 ) . toBe ( 'Apache-2.0' )
113113 } )
114114
115- test ( 'allows overriding license values for scoped packages' , function ( ) {
115+ it ( 'allows overriding license values for scoped packages' , function ( ) {
116116 expect (
117117 getLicense (
118118@@ -131,7 +131,7 @@ describe('getLicense', function () {
131131 ) . toBe ( 'Apache-2.0' )
132132 } )
133133
134- test ( 'allows overriding license values using version ranges' , function ( ) {
134+ it ( 'allows overriding license values using version ranges' , function ( ) {
135135 expect (
136136 getLicense (
137137@@ -150,7 +150,7 @@ describe('getLicense', function () {
150150 ) . toBe ( 'Apache-2.0' )
151151 } )
152152
153- test ( 'allows overriding license values without specifying versions' , function ( ) {
153+ it ( 'allows overriding license values without specifying versions' , function ( ) {
154154 expect (
155155 getLicense (
156156
0 commit comments