Add test and bump version in package lock

This commit is contained in:
Jim Verheijde
2024-01-06 22:46:02 +01:00
parent 3c68885b10
commit 3474b9e5fb
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
import {OSType, getOs} from '../src/platform'
import {OSType, getOs, getRelease} from '../src/platform'
import os from 'os'
test.concurrent('Return either windows of linux platform', async () => {
@@ -18,3 +18,8 @@ test.concurrent('Return either windows of linux platform', async () => {
const osPlatform = await getOs()
expect(osPlatform).toBe(expected)
})
test.concurrent('Return version', async () => {
const version = await getRelease()
expect(version).toBeDefined()
})
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "cuda-toolkit",
"version": "0.2.11",
"version": "0.2.12",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cuda-toolkit",
"version": "0.2.11",
"version": "0.2.12",
"license": "MIT",
"dependencies": {
"@actions/artifact": "^1.1.1",