Skip to content

Commit

Permalink
test: small snapshot readability improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Abraham Schilling authored and Abraham Schilling committed Nov 24, 2022
1 parent 6726aa3 commit 754eb8b
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions test/server/plugin/Config/ParsedPluginConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,13 @@ describe("ParsedPluginConfig", () => {

const parsedPluginConfig = new ParsedPluginConfig(config)

expect(parsedPluginConfig).toMatchInlineSnapshot(`
ParsedPluginConfig {
// Don't snapshot constructor properties
const { config: _, ...result } = parsedPluginConfig

expect(result).toMatchInlineSnapshot(`
{
"clientId": "clientId",
"clientSecret": "clientSecret",
"config": {
"auth": {
"github-oauth-ui": {
"client-id": "clientId",
"client-secret": "clientSecret",
"token": "token",
},
},
"middlewares": {
"github-oauth-ui": {
"enabled": true,
},
},
},
"configuredGroupsMap": {},
"enterpriseOrigin": undefined,
"parsedOrgs": [],
Expand Down

0 comments on commit 754eb8b

Please sign in to comment.