-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1772 from blackflux/dev
[Gally]: master <- dev
- Loading branch information
Showing
12 changed files
with
234 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"description": "Test to enforce dependency consistency.", | ||
"details": [], | ||
"formats": ["other"], | ||
"requires": [], | ||
"website": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/plugin/tasks/serverless/snippets/serverless/test/4-deps.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import path from 'path'; | ||
import fs from 'smart-fs'; | ||
import { describe } from 'node-tdd'; | ||
import { expect } from 'chai'; | ||
import * as lockfile from '@yarnpkg/lockfile'; | ||
|
||
const root = path.join(fs.dirname(import.meta.url), '..'); | ||
|
||
describe('Testing dependencies', () => { | ||
it('Testing lru-cache-ext version unique', () => { | ||
const lockUri = fs.readFileSync(path.join(root, 'yarn.lock'), 'utf8'); | ||
const lockContent = lockfile.default.parse(lockUri); | ||
const keys = Object.keys(lockContent.object); | ||
const versions = keys.filter((e) => e.startsWith('lru-cache-ext@')); | ||
expect(versions).to.have.length(1); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"target": "test/4-deps.spec.js", | ||
"format": "txt", | ||
"strategy": "overwrite", | ||
"snippets": [ | ||
"serverless/test/4-deps.spec.js" | ||
], | ||
"requires": [ | ||
"serverless", | ||
"aws" | ||
], | ||
"purpose": [ | ||
"Test to enforce resources tagging." | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/projects/assorted/@sls-closedsource-dynamodb/test/4-deps.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import path from 'path'; | ||
import fs from 'smart-fs'; | ||
import { describe } from 'node-tdd'; | ||
import { expect } from 'chai'; | ||
import * as lockfile from '@yarnpkg/lockfile'; | ||
|
||
const root = path.join(fs.dirname(import.meta.url), '..'); | ||
|
||
describe('Testing dependencies', () => { | ||
it('Testing lru-cache-ext version unique', () => { | ||
const lockUri = fs.readFileSync(path.join(root, 'yarn.lock'), 'utf8'); | ||
const lockContent = lockfile.default.parse(lockUri); | ||
const keys = Object.keys(lockContent.object); | ||
const versions = keys.filter((e) => e.startsWith('lru-cache-ext@')); | ||
expect(versions).to.have.length(1); | ||
}); | ||
}); |
Oops, something went wrong.