-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
__tests__/command_helpers/__snapshots__/solidarityReport.ts.snap
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,48 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`solidarityReport structure the basic function generates the Result object 1`] = ` | ||
Object { | ||
"basicInfo": Array [ | ||
Array [ | ||
"System Basics", | ||
"Value", | ||
], | ||
Array [ | ||
"OS", | ||
"macOS High Sierra 10.13.3", | ||
], | ||
Array [ | ||
"CPU", | ||
"x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz", | ||
], | ||
], | ||
"cliRules": Array [ | ||
Array [ | ||
"Binary", | ||
"Location", | ||
"Version", | ||
"Desired", | ||
], | ||
], | ||
"envRules": Array [ | ||
Array [ | ||
"Environment Var", | ||
"Value", | ||
], | ||
], | ||
"filesystemRules": Array [ | ||
Array [ | ||
"Location", | ||
"Type", | ||
"Exists", | ||
], | ||
], | ||
"shellRules": Array [ | ||
Array [ | ||
"Command", | ||
"Pattern", | ||
"Matches", | ||
], | ||
], | ||
} | ||
`; |
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,10 @@ | ||
import { SolidarityReportResults } from '../../src/types' | ||
import { createReport } from '../../src/extensions/functions/solidarityReport' | ||
|
||
let reportResults: SolidarityReportResults | ||
describe('solidarityReport structure', () => { | ||
test('the basic function generates the Result object', () => { | ||
let report = createReport() | ||
expect(report).toMatchSnapshot() | ||
}) | ||
}) |