Skip to content

Commit

Permalink
refactor: path.resolve parameter, Part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Aug 16, 2022
1 parent b657cbf commit 48ee32f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions tests/integration/artifact/local/localArtifact.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
describe('Local artifact tests', function desc() {
beforeEach(async () => {
await Promise.all([
compressArtifact(__dirname, './artifacts/hello1.zip', [
'./src/handler1.js',
'./src/package.json',
compressArtifact(__dirname, 'artifacts/hello1.zip', [
'src/handler1.js',
'src/package.json',
]),
compressArtifact(__dirname, './artifacts/hello2.zip', [
'./src/handler2.js',
'./src/package.json',
compressArtifact(__dirname, 'artifacts/hello2.zip', [
'src/handler2.js',
'src/package.json',
]),
])

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/docker/artifact/artifact.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url))

describe('Artifact with docker tests', function desc() {
beforeEach(async () => {
await compressArtifact(__dirname, './artifacts/hello.zip', ['./handler.js'])
await compressArtifact(__dirname, 'artifacts/hello.zip', ['handler.js'])
return setup({
servicePath: resolve(__dirname),
})
Expand Down
8 changes: 4 additions & 4 deletions tests/scenario/docker-in-docker/docker-in-docker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ describe.skip('docker in docker', function desc() {

beforeEach(async () => {
await Promise.all([
compressArtifact(resolve(__dirname, 'app'), './artifacts/hello.zip', [
'./handler.js',
compressArtifact(resolve(__dirname, 'app'), 'artifacts/hello.zip', [
'handler.js',
]),
compressArtifact(resolve(__dirname, 'app'), './artifacts/layer.zip', [
'./handler.sh',
compressArtifact(resolve(__dirname, 'app'), 'artifacts/layer.zip', [
'handler.sh',
]),
])

Expand Down

0 comments on commit 48ee32f

Please sign in to comment.