Compare commits
No commits in common. "f4470ac2e9b7fd3f7b293a801d7d473d77b81925" and "4ca13712ed00ed3c3bc9dc8464b1e83ddf347cc7" have entirely different histories.
f4470ac2e9
...
4ca13712ed
2 changed files with 2 additions and 24 deletions
4
.github/workflows/njsscan.yml
vendored
4
.github/workflows/njsscan.yml
vendored
|
@ -33,10 +33,10 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: nodejsscan scan
|
- name: nodejsscan scan
|
||||||
id: njsscan
|
id: njsscan
|
||||||
uses: ajinabraham/njsscan-action@v7
|
uses: ajinabraham/njsscan-action@7237412fdd36af517e2745077cedbf9d6900d711
|
||||||
with:
|
with:
|
||||||
args: '. --sarif --output results.sarif || true'
|
args: '. --sarif --output results.sarif || true'
|
||||||
- name: Upload njsscan report
|
- name: Upload njsscan report
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
const getCreationDate = require('../util/getCreationDate');
|
|
||||||
|
|
||||||
const users = [
|
|
||||||
{ user: { createdAt: new Date("2016-01-29T14:47:58.915Z") } },
|
|
||||||
{ user: { createdAt: new Date("2018-08-20T15:51:47.090Z") } },
|
|
||||||
{ user: { createdAt: new Date("2019-04-08T21:08:11.212Z") } }
|
|
||||||
|
|
||||||
]
|
|
||||||
|
|
||||||
const humanReadableTime = [
|
|
||||||
"2016-01-29 14:47:58",
|
|
||||||
"2018-08-20 15:51:47",
|
|
||||||
"2019-04-08 21:08:11"
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
test('Testing getCreationDate', () => {
|
|
||||||
for(let i = 0; i < users.length; i++){
|
|
||||||
expect(getCreationDate(users[i])).toBe(humanReadableTime[i])
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
Loading…
Add table
Reference in a new issue