mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-06 06:29:45 -06:00
* use 'platform-arch' naming scheme for downloads
* do full builds for this branch
* Revert "do full builds for this branch"
This reverts commit 6d539513e7.
* update wrong comments
* chore: test upload getCDN functions
* linting js
* unit test refactored manifest
* linting
24 lines
569 B
JavaScript
24 lines
569 B
JavaScript
const snapshot = require('snap-shot-it')
|
|
|
|
/* eslint-env mocha */
|
|
describe('getCDN', () => {
|
|
context('npm package', () => {
|
|
const { getCDN } = require('../../binary/upload-npm-package')
|
|
|
|
it('returns CDN s3 path', () => {
|
|
const options = {
|
|
platform: 'darwin-x64',
|
|
filename: 'cypress.tgz',
|
|
version: '3.3.0',
|
|
// ci name + commit sha + build number
|
|
hash: 'ci-name-e154a40f3f76abd39a1d85c0ebc0ff9565015706-123',
|
|
}
|
|
|
|
snapshot({
|
|
input: options,
|
|
result: getCDN(options),
|
|
})
|
|
})
|
|
})
|
|
})
|