diff --git a/.github/workflows/njsscan.yml b/.github/workflows/njsscan.yml index ff888b4..5cf6cee 100644 --- a/.github/workflows/njsscan.yml +++ b/.github/workflows/njsscan.yml @@ -33,10 +33,10 @@ jobs: uses: actions/checkout@v3 - name: nodejsscan scan id: njsscan - uses: ajinabraham/njsscan-action@v7 + uses: ajinabraham/njsscan-action@7237412fdd36af517e2745077cedbf9d6900d711 with: args: '. --sarif --output results.sarif || true' - name: Upload njsscan report - uses: github/codeql-action/upload-sarif@v3 + uses: github/codeql-action/upload-sarif@v2 with: sarif_file: results.sarif diff --git a/tests/getCreationDate.test.js b/tests/getCreationDate.test.js deleted file mode 100644 index 4bbbf9f..0000000 --- a/tests/getCreationDate.test.js +++ /dev/null @@ -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]) - } - -}); \ No newline at end of file