Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
chore(Keys): Export new keys fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
cblanc committed Jun 4, 2019
1 parent 4c7ea38 commit 1242354
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/index.ts
Expand Up @@ -174,6 +174,8 @@ export const autocomplete = {
import { payload as ke_available } from "./fixtures/keys/2000-keys";
import { payload as ke_unavailable } from "./fixtures/keys/2000-keys-unavailable";
import { payload as ke_invalid } from "./fixtures/keys/4042-keys-invalid";
import { payload as ke_private_success } from "./fixtures/keys/2000-keys-private";
import { payload as ke_usage_success } from "./fixtures/keys/2000-keys-usage";

/**
* API responses returned by the `/keys` API
Expand All @@ -196,6 +198,24 @@ export const keys = {
*/
invalid: ke_invalid,
},


/**
* API Key requests for private consumption (i.e. `user_token` is presented)
*/
private: {
/**
* Private key details successfully extracted
*/
success: ke_private_success,
},

/**
* Private key usage successfully extracted
*/
usage: {
success: ke_usage_success,
},
};

/**
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures.unit.ts
Expand Up @@ -41,6 +41,8 @@ describe("Fixtures", () => {
isFixture(keys.check.available);
isFixture(keys.check.unavailable);
isFixture(keys.check.invalid);
isFixture(keys.private.success);
isFixture(keys.usage.success);
});

it("exports UDPRN fixtures", () => {
Expand Down

0 comments on commit 1242354

Please sign in to comment.