forked from pnp/cli-microsoft365
-
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.
Changed coverage to use c8 instead of nyc solving pnp#1271
- Loading branch information
1 parent
65b2c66
commit 9b95351
Showing
93 changed files
with
1,402 additions
and
1,707 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"exclude": ["**/*.spec.js", "**/clientsidepages.js"], | ||
"reporter": ["lcov", "text", "text-summary"] | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,39 @@ | ||
import * as assert from 'assert'; | ||
|
||
describe('Config', () => { | ||
before(() => { | ||
delete require.cache[require.resolve('./config')]; | ||
}); | ||
|
||
afterEach(() => { | ||
delete require.cache[require.resolve('./config')]; | ||
}); | ||
|
||
it('returns process.env OFFICE365CLI_TENANT value', () => { | ||
process.env.OFFICE365CLI_TENANT = 'tenant123'; | ||
|
||
const config = require('./config'); | ||
assert.equal(config.default.tenant, 'tenant123'); | ||
}); | ||
|
||
it('returns process.env OFFICE365CLI_AADAPPID value', () => { | ||
process.env.OFFICE365CLI_AADAPPID = 'appId123'; | ||
|
||
const config = require('./config'); | ||
assert.equal(config.default.cliAadAppId, 'appId123'); | ||
}); | ||
|
||
it('returns default value since env OFFICE365CLI_TENANT not present', () => { | ||
delete process.env.OFFICE365CLI_TENANT; | ||
|
||
const config = require('./config'); | ||
assert.equal(config.default.tenant, 'common'); | ||
}); | ||
|
||
it('returns default value since env OFFICE365CLI_AADAPPID not present', () => { | ||
delete process.env.OFFICE365CLI_AADAPPID; | ||
|
||
const config = require('./config'); | ||
assert.equal(config.default.cliAadAppId, '31359c7f-bd7e-475c-86db-fdb8c937548e'); | ||
}); | ||
}); |
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
Oops, something went wrong.