UNPKG

@remote.it/core

Version:

Core remote.it JavasScript/TypeScript library

26 lines (23 loc) 773 B
import { WindowsSystemService } from './WindowsSystemService' import { homedir } from 'os' import { join } from 'path' xdescribe('WindowsSystemService', () => { test('should not explode', async () => { const path = join(homedir(), 'hello') const name = 'TEST Stuff!' const service = new WindowsSystemService(path) expect(service.name).toBe(name) expect(service.exists).toBe(false) }) describe('install', () => { test('should not explode', async () => { const path = join(homedir(), 'hello') const name = 'TEST Stuff!' const service = new WindowsSystemService(path) await service.install() expect(service.exists).toBe(true) await service.uninstall() expect(service.exists).toBe(false) }) }) })