-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add simpler graph builder * better graphs * turn off graph tests in ci
- Loading branch information
Showing
8 changed files
with
310 additions
and
125 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
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 @@ | ||
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c |
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,49 @@ | ||
import * as core from '@actions/core' | ||
|
||
import { facade } from '../src' | ||
|
||
let debug: jest.SpiedFunction<typeof core.debug> | ||
let output: jest.SpiedFunction<typeof core.setOutput> | ||
let secret: jest.SpiedFunction<typeof core.setSecret> | ||
|
||
beforeEach(() => { | ||
process.env.GITHUB_ACTION = 'jest-mock' | ||
jest.clearAllMocks() | ||
debug = jest.spyOn(core, 'debug').mockImplementation() | ||
output = jest.spyOn(core, 'setOutput').mockImplementation() | ||
secret = jest.spyOn(core, 'setSecret').mockImplementation() | ||
}) | ||
|
||
|
||
it.skip('graph assist with regular jwt', async () => { | ||
await facade(`graph assist ./tests/fixtures/example.jwt \ | ||
--content-type application/jwt \ | ||
--graph-type application/gql \ | ||
--env ./.env \ | ||
--verbose --push `) | ||
expect(debug).toHaveBeenCalledTimes(1) | ||
expect(output).toHaveBeenCalledTimes(1) | ||
expect(secret).toHaveBeenCalledTimes(1) | ||
}) | ||
|
||
it.skip('graph assist with transmute platform presentations', async () => { | ||
await facade(`graph assist \ | ||
--graph-type application/gql \ | ||
--env ./.env \ | ||
--push `) | ||
expect(debug).toHaveBeenCalledTimes(0) | ||
expect(output).toHaveBeenCalledTimes(1) | ||
expect(secret).toHaveBeenCalledTimes(1) | ||
}) | ||
|
||
|
||
it.skip('graph assist with verifiable credential', async () => { | ||
await facade(`graph assist ./tests/fixtures/issuer-claims.json \ | ||
--content-type application/vc \ | ||
--graph-type application/gql \ | ||
--env ./.env \ | ||
--verbose --push `) | ||
expect(debug).toHaveBeenCalledTimes(1) | ||
expect(output).toHaveBeenCalledTimes(1) | ||
expect(secret).toHaveBeenCalledTimes(1) | ||
}) |
Oops, something went wrong.