register spdx lib as ES Module, start converting call sites to use new spdx pkg - TODO: update tests
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import {expect, jest, test} from '@jest/globals'
|
||||
import * as spdx from '../src/spdx'
|
||||
|
||||
test('hello', () => {
|
||||
expect(spdx.satisfies('MIT', 'MIT')).toBe(true)
|
||||
})
|
||||
|
||||
test('isValid', () => {
|
||||
expect(spdx.isValid('MIT')).toBe(true)
|
||||
expect(spdx.isValid('FOOBARBAZ')).toBe(false)
|
||||
})
|
||||
Reference in New Issue
Block a user