Update docs for ownership change (#2)
* Add files to prepare for ownership change * Fix tests * Update repo name * Update dependencies * Attempt to fix permissions issues blocking test * Update permissions * Add environment variable * Fix variable name * Update test.yml * Update test.yml
This commit is contained in:
@@ -2,16 +2,19 @@ import ComponentDetection from './componentDetection';
|
||||
import fs from 'fs';
|
||||
|
||||
test('Downloads CLI', async () => {
|
||||
ComponentDetection.downloadLatestRelease();
|
||||
await ComponentDetection.downloadLatestRelease();
|
||||
expect(fs.existsSync(ComponentDetection.componentDetectionPath));
|
||||
});
|
||||
|
||||
test('Runs CLI', async () => {
|
||||
await ComponentDetection.runComponentDetection('./test');
|
||||
expect(fs.existsSync(ComponentDetection.outputPath));
|
||||
await ComponentDetection.downloadLatestRelease();
|
||||
await ComponentDetection.runComponentDetection('./test');
|
||||
expect(fs.existsSync(ComponentDetection.outputPath));
|
||||
});
|
||||
|
||||
test('Parses CLI output', async () => {
|
||||
await ComponentDetection.downloadLatestRelease();
|
||||
await ComponentDetection.runComponentDetection('./test');
|
||||
var manifests = await ComponentDetection.getManifestsFromResults();
|
||||
expect(manifests?.length == 2);
|
||||
});
|
||||
Reference in New Issue
Block a user