Skip to content

Commit

Permalink
chore: Bump chai and chai-as-promised
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jun 18, 2024
1 parent 8a01911 commit 2d0b2d9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,12 @@
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@types/bluebird": "^3.5.38",
"@types/chai": "^4.3.5",
"@types/chai-as-promised": "^7.1.5",
"@types/lodash": "^4.14.196",
"@types/mocha": "^10.0.1",
"@types/node": "^20.4.7",
"@types/sinon": "^17.0.0",
"@types/sinon-chai": "^3.2.9",
"@types/teen_process": "^2.0.1",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"chai": "^5.1.1",
"chai-as-promised": "^8.0.0",
"conventional-changelog-conventionalcommits": "^8.0.0",
"mocha": "^10.0.0",
"prettier": "^3.0.0",
Expand Down
17 changes: 12 additions & 5 deletions test/e2e/xcode-specs.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
import * as xcode from '../../lib/xcode';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import { fs, util } from '@appium/support';
import _ from 'lodash';


let should = chai.should();
chai.use(chaiAsPromised);

describe('xcode @skip-linux', function () {
// on slow machines and busy CI systems these can be slow and flakey
this.timeout(30000);

let chai;
let chaiAsPromised;
let should;

before(async function() {
chai = await import('chai');
chaiAsPromised = await import('chai-as-promised');

should = chai.should();
chai.use(chaiAsPromised.default);
});

describe('getPath', function () {
it('should get the path to xcode from xcode-select', async function () {
const path = await xcode.getPathFromXcodeSelect();
Expand Down
13 changes: 10 additions & 3 deletions test/unit/index-specs.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import xcode from '../../lib/index';
import chai from 'chai';

chai.should();

describe('index', function () {
let chai;
let should;

Check warning on line 5 in test/unit/index-specs.js

View workflow job for this annotation

GitHub Actions / test (18)

'should' is assigned a value but never used

Check warning on line 5 in test/unit/index-specs.js

View workflow job for this annotation

GitHub Actions / test (20)

'should' is assigned a value but never used

Check warning on line 5 in test/unit/index-specs.js

View workflow job for this annotation

GitHub Actions / test (22)

'should' is assigned a value but never used

Check warning on line 5 in test/unit/index-specs.js

View workflow job for this annotation

GitHub Actions / test (18)

'should' is assigned a value but never used

Check warning on line 5 in test/unit/index-specs.js

View workflow job for this annotation

GitHub Actions / test (20)

'should' is assigned a value but never used

Check warning on line 5 in test/unit/index-specs.js

View workflow job for this annotation

GitHub Actions / test (22)

'should' is assigned a value but never used

before(async function() {
chai = await import('chai');

should = chai.should();
});


it('exported objects should exist', function () {
xcode.should.exist;
});
Expand Down

0 comments on commit 2d0b2d9

Please sign in to comment.