register spdx lib as ES Module, start converting call sites to use new spdx pkg - TODO: update tests

This commit is contained in:
Eli Reisman
2024-06-05 23:38:18 -07:00
parent a97084db22
commit 748dfadbc3
7 changed files with 46 additions and 15 deletions
+11
View File
@@ -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)
})