mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-01 20:19:58 -06:00
* adding S3 sdk * test binary folder * linting * before searching for binary * linting * grab folders in the given S3 prefix * grab folders in the given S3 prefix * find the last build * found last builds for commit * refactoring * add tests for upload dir name * create destination zip filename * copying S3 files * move s3 helpers into own object, prepare for testing * add realistic test * linting * chore: add documentation to DEPLOY.md file
22 lines
627 B
JavaScript
22 lines
627 B
JavaScript
const snapshot = require('snap-shot-it')
|
|
|
|
// I named this file util-upload-spec
|
|
// to avoid snapshots being saved into same file
|
|
// since "snap-shot-it" v8.x saves all snapshots into single folder
|
|
|
|
/* eslint-env mocha */
|
|
describe('upload util', () => {
|
|
const upload = require('../../../binary/util/upload')
|
|
|
|
context('isValidPlatformArch', () => {
|
|
const { isValidPlatformArch } = upload
|
|
|
|
it('checks given strings', () => {
|
|
const valid = upload.validPlatformArchs
|
|
const invalid = ['darwin', 'win32', 'windows', 'linux', 'linux64']
|
|
|
|
snapshot(isValidPlatformArch, ...valid, ...invalid)
|
|
})
|
|
})
|
|
})
|