Skip to content

Commit

Permalink
test: skip test on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Dec 15, 2020
1 parent eda1b01 commit 2eea043
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Resources/fs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
/* eslint node/no-unsupported-features/node-builtins: "off" */
'use strict';
const should = require('./utilities/assertions');
const utilities = require('./utilities/utilities');

const path = require('path');

const isMacOS = utilities.isMacOS();
const isIOSSim = OS_IOS && Ti.Platform.model.includes('(Simulator)');
const IS_ENCRYPTED = Ti.App.deployType === 'test';

/**
Expand Down Expand Up @@ -89,7 +93,7 @@ describe('fs', function () {

it('checks that this file is NOT writable properly', function (finished) {
// ios sim does report this as writable!
if (OS_IOS && Ti.Platform.model.includes('(Simulator)')) {
if (isIOSSim || isMacOS) {
// this.skip(); // FIXME: Call this.skip() once we upgrade to npm mocha
return finished();
}
Expand Down

0 comments on commit 2eea043

Please sign in to comment.