-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make re-usable for other repos
- Loading branch information
1 parent
42d4866
commit b09d200
Showing
5 changed files
with
27 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
import { describe, it } from 'node:test' | ||
import assert from 'node:assert/strict' | ||
import { loadRepoList } from './loadRepoList.js' | ||
import path from 'node:path' | ||
|
||
void describe('loadRepoList()', () => { | ||
void it('should load the list of repos', async () => { | ||
assert.notEqual( | ||
(await loadRepoList()).find( | ||
(el) => el.name === 'ci' && el.owner === 'hello-nrfcloud', | ||
), | ||
undefined, | ||
assert.deepEqual( | ||
await loadRepoList(path.join(process.cwd(), 'cdk', 'test', 'repos.txt')), | ||
[ | ||
{ | ||
name: 'ci', | ||
owner: 'hello-nrfcloud', | ||
}, | ||
{ | ||
name: 'aws-cdk-ecr-helpers', | ||
owner: 'bifravst', | ||
}, | ||
], | ||
) | ||
}) | ||
}) |
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,3 @@ | ||
hello-nrfcloud/ci | ||
# a comment | ||
bifravst/aws-cdk-ecr-helpers |