Skip to content

Commit

Permalink
Added environment tests
Browse files Browse the repository at this point in the history
  • Loading branch information
targendaz2 committed Apr 23, 2024
1 parent c215f30 commit 719f606
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 14 deletions.
24 changes: 24 additions & 0 deletions tests/environmental/binaries.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { Config } from '@/src/types';
import '@/tests/extensions/fs.ext';
import { expect, test } from '@jest/globals';

const config: Config = require('@/src/config.json');

test('lsregister binary should exist', () => {
expect(config.systemPaths['lsregister']).toExist();
});

test('mdfind binary should exist', () => {
const path = '/usr/bin/mdfind';
expect(path).toExist();
});

test('osascript binary should exist', () => {
const path = '/usr/bin/osascript';
expect(path).toExist();
});

test('zsh binary should exist', () => {
const path = '/bin/zsh';
expect(path).toExist();
});
9 changes: 9 additions & 0 deletions tests/environmental/paths.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { Config } from '@/src/types';
import '@/tests/extensions/fs.ext';
import { expect, test } from '@jest/globals';

const config: Config = require('@/src/config.json');

test('User template should exist', () => {
expect(config.systemPaths['userTemplate']).toExist();
});
14 changes: 0 additions & 14 deletions tests/unit/shell.test.ts

This file was deleted.

0 comments on commit 719f606

Please sign in to comment.