Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/on-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
deploy:
name: Deploy to Environment
runs-on: ubuntu-latest
permissions:
id-token: write # NPM Trusted Publisher (eliminates need for NPM_TOKEN)
contents: write
deployments: write
steps:
- name: Checkout Ref
uses: actions/checkout@v1
Expand Down Expand Up @@ -54,9 +58,9 @@ jobs:
echo ::set-output name=SLACK_WEBHOOK::${{ secrets.SLACK_WEBHOOK }}
fi
- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '16.14.2'
node-version-file: '.nvmrc'
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/on-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
name: Run Tests and Linting
runs-on: ubuntu-latest
steps:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '16.14.2'
- name: Checkout Ref
uses: actions/checkout@v1
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Run Tests and Lint
run: bash -e ./scripts/test.sh
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
name: Tag Build
runs-on: ubuntu-latest
steps:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '16.14.2'
- name: Checkout Ref
uses: actions/checkout@v1
with:
ref: ${{ github.event.push.after }}
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Set Up Variables
id: variables
run: |
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.18.2
24.12.0
26 changes: 21 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,8 @@ describe('Evolv client integration tests', () => {
xhrMock.setup();
// Uncomment to hit Frazer's endpoint
// global.XMLHttpRequest = xmlhttprequest.XMLHttpRequest;
global.crypto = new Crypto();
});
afterEach(() => {
delete global.crypto;
delete global.XMLHttpRequest;
xhrMock.teardown();
});
Expand Down Expand Up @@ -466,7 +464,7 @@ describe('Evolv client integration tests', () => {
const evolv = new Evolv(options);
const confirmedSpy = chai.spy();
evolv.on(Evolv.CONFIRMED, confirmedSpy);

await validateClient(evolv, options, uid);

expect(confirmedSpy).to.have.been.called.exactly(1);
Expand Down Expand Up @@ -529,7 +527,7 @@ describe('Evolv client integration tests', () => {
const evolv = new Evolv(options);
const confirmedSpy = chai.spy();
evolv.on(Evolv.CONFIRMED, confirmedSpy);

await validateClient(evolv, options, uid);

expect(confirmedSpy).to.have.been.called.exactly(1);
Expand Down
Loading