Add test and bump version in package lock
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Generated
+2
-2
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user