Skip to content

Commit

Permalink
Skip platform-specific tests as context demands
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Apr 1, 2024
1 parent dfa0099 commit 1e56202
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/helpers/macos/applescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ const {
} = require('../../../lib/helpers/macos/applescript.js');
const { parseCodePoints } = require('../../../lib/helpers/macos/parseCodePoints.js');
const { keyCodeCommand } = require('../../../lib/helpers/macos/keyCodeCommand.js');
const IS_MACOS = require('os').platform() === 'darwin';

suite('helpers/macos/applescript', () => {
suiteSetup(function() {
if (!IS_MACOS) {
this.skip();
return;
}
});

suite('parseCodePoints', () => {
test('space', () => {
assert.deepEqual(parseCodePoints([' ']), keyCodeCommand(['space'], []));
Expand Down

0 comments on commit 1e56202

Please sign in to comment.