Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyrohrbough committed Feb 2, 2022
1 parent 31ddc9e commit 7d01dfb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 62 deletions.
9 changes: 0 additions & 9 deletions __snapshots__/upload-npm-package-spec.js

This file was deleted.

26 changes: 0 additions & 26 deletions __snapshots__/upload-unique-binary-spec.js

This file was deleted.

5 changes: 3 additions & 2 deletions scripts/binary/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,11 @@ module.exports = {
.pipe(rename((p) => {
// rename to standard filename for upload
p.basename = path.basename(uploadPath, path.extname(uploadPath))
p.dirname = path.dirName(uploadPath)
p.dirname = path.dirname(uploadPath)

return p
})).pipe(gulpDebug())
}))
.pipe(gulpDebug())
.pipe(publisher.publish(headers))
.pipe(awspublish.reporter())
.on('error', reject)
Expand Down
25 changes: 0 additions & 25 deletions scripts/unit/binary/upload-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ require('../../spec-helper')

const snapshot = require('snap-shot-it')
const la = require('lazy-ass')
const os = require('os')

/* eslint-env mocha */
/* global sinon */
describe('upload', () => {
const upload = require('../../binary/upload')

Expand All @@ -29,27 +27,4 @@ describe('upload', () => {
la(folder === 'desktop/3.3.0', 'wrong desktop folder', folder)
})
})

// TODO: update tests this was removed but missing a ton of tests here...
context.skip('getUploadDirName', () => {
it('returns folder with platform', () => {
const aws = {
folder: 'desktop',
}

sinon.stub(upload, 'getAwsObj').returns(aws)
sinon.stub(os, 'arch').returns('x64')

const folder = upload.getUploadDirName({
platform: 'darwin',
version: '3.3.0',
})

la(
folder === 'desktop/3.3.0/darwin-x64/',
'wrong upload desktop folder',
folder,
)
})
})
})

1 comment on commit 7d01dfb

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 7d01dfb Feb 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/9.4.2/linux-x64/circle-develop-7d01dfb0afc115a8dd1a4487cc6d50843d9898cc/cypress.tgz

Please sign in to comment.