mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-01 12:10:07 -06:00
* move s3 api helpers into own TS file
* add demo file
* add comments
* add method to set user metadata by copying it
* set checksum metadata on uploaded binary
* move checksum to the right upload file
* call the right method
* fix require from ts
* convert size to string
* needs extension
* test binary against other projects
* set checksums as headers during first upload
* Revert "set checksums as headers during first upload"
This reverts commit 2043d9ee1f.
* set ACL to public-read when setting metadata on binary
* linting
* pass content-type
* update scripts tests
* linting
* add --platformArch parameter
27 lines
539 B
JavaScript
27 lines
539 B
JavaScript
const la = require('lazy-ass')
|
|
|
|
/* eslint-env mocha */
|
|
describe('s3-api', () => {
|
|
context('hasOnlyStringValues', () => {
|
|
const { hasOnlyStringValues } = require('../../binary/s3-api')
|
|
|
|
it('returns true if object has only string values', () => {
|
|
const o = {
|
|
foo: 'bar',
|
|
baz: 'baz',
|
|
}
|
|
|
|
la(hasOnlyStringValues(o))
|
|
})
|
|
|
|
it('returns false if object has non-string value', () => {
|
|
const o = {
|
|
foo: 'bar',
|
|
baz: 42,
|
|
}
|
|
|
|
la(!hasOnlyStringValues(o))
|
|
})
|
|
})
|
|
})
|