Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Co-Authored-By: David Sanders <dsanders11@ucsbalum.com>
  • Loading branch information
malept and dsanders11 committed Feb 11, 2020
1 parent 6cc52a1 commit 00cc2fa
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,22 @@ describe('Public API', () => {
});
});

it('should download the same artifact for falsy platform/arch as default platform/arch', async () => {
const defaultPath = await downloadArtifact({
version: '2.0.3',
artifactName: 'electron',
});

const undefinedPath = await downloadArtifact({
version: '2.0.3',
artifactName: 'electron',
platform: undefined,
arch: undefined,
});

expect(defaultPath).toEqual(undefinedPath);
});

it('should download linux/armv7l when linux/arm is passed as platform/arch', async () => {
const zipPath = await downloadArtifact({
cacheRoot,
Expand Down

0 comments on commit 00cc2fa

Please sign in to comment.