Skip to content

Commit

Permalink
chore: I really should PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RichiCoder1 committed Mar 31, 2020
1 parent ed8303c commit 50ece41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions action.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,15 @@ describe('exportSecrets', () => {
function mockVaultData(data, version='2') {
switch(version) {
case '1':
got.mockResolvedValue({
body: JSON.stringify({
data
})
got.extend.mockReturnValue({
get: async () => ({ body: JSON.stringify({ data }) })
});
break;
case '2':
got.mockResolvedValue({
body: JSON.stringify({
data: {
data
}
})
got.extend.mockReturnValue({
get: async () => ({ body: JSON.stringify({ data: {
data
} }) })
});
break;
}
Expand Down
2 changes: 1 addition & 1 deletion integrationTests/enterprise/enterprise.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ describe('authenticate with approle', () => {
.mockReturnValueOnce('ns2');
});

it.only('authenticate with approle', async() => {
it('authenticate with approle', async() => {
mockInput('test secret');

await exportSecrets();
Expand Down

0 comments on commit 50ece41

Please sign in to comment.