smartdeno/test/test.ts

21 lines
522 B
TypeScript
Raw Normal View History

2024-03-16 23:53:32 +00:00
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
import * as smartdeno from '../ts/index.js'
let testSmartdeno: smartdeno.SmartDeno;
tap.test('should create a valid smartdeno instance', async () => {
testSmartdeno = new smartdeno.SmartDeno();
});
tap.test('should download deno', async () => {
2024-03-17 20:24:25 +00:00
await testSmartdeno.start({
2024-03-16 23:53:32 +00:00
forceLocalDeno: true
});
})
2024-03-17 20:24:25 +00:00
tap.test('should execute a script', async () => {
await testSmartdeno.executeScript(`console.log("A script from deno!")`);
})
2024-03-16 23:53:32 +00:00
tap.start()