Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
feat(namespace): pass namespace for accessibility api
Browse files Browse the repository at this point in the history
  • Loading branch information
iglenwoo committed Oct 26, 2018
1 parent cdf9509 commit 5b1f9df
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions mocks/AboutItem/mocks.ts
Expand Up @@ -160,6 +160,7 @@ export const rubricsEsn: RubricModel[] = [
export const allRubrics: RubricModel[] = mockRubrics.concat(rubricsEsn);

export const aboutItemRevisionMockModel: AboutItemRevisionModel = {
namespace: "Namespace",
itemKey: "100",
bankKey: "100",
revision: "2",
Expand Down
1 change: 1 addition & 0 deletions src/AboutItem/AboutItemModels.ts
Expand Up @@ -46,6 +46,7 @@ export interface AboutItemRevision {
}

export interface AboutItemRevisionModel {
namespace: string;
itemKey: string;
bankKey: string;
revision: string;
Expand Down
3 changes: 2 additions & 1 deletion src/ItemBank/ItemBankContainer.tsx
Expand Up @@ -120,7 +120,8 @@ export class ItemBankContainer extends React.Component<
gradeLevel: item.AboutItemMetadata.intendedGrade,
allowCalculator: this.makeBool(item),
itemKey: item.AboutItemMetadata.identifier,
bankKey: item.bankKey
bankKey: item.bankKey,
namespace: item.namespace
};
const prom = this.props.accessibilityClient(params);
const promiseWrapper = this.subscription.add("accessibilityClient", prom);
Expand Down
1 change: 1 addition & 0 deletions src/ItemBank/ItemBankModels.ts
Expand Up @@ -206,6 +206,7 @@ export interface AccessibilityRevisionModel {
interactionType: string;
allowCalculator?: boolean;
isPerformance?: boolean;
namespace?: string;
itemKey?: string;
bankKey?: string;
brailleType?: string;
Expand Down
Expand Up @@ -162,6 +162,7 @@ exports[`ItemBankViewer with all props defined matches snapshot 1`] = `
}
bankKey="100"
itemKey="100"
namespace="Namespace"
revision="2"
sampleItemScoring={
Object {
Expand Down Expand Up @@ -520,6 +521,7 @@ exports[`ItemBankViewer with revision model and accResourceGroup matches snapsho
}
bankKey="100"
itemKey="100"
namespace="Namespace"
revision="2"
sampleItemScoring={
Object {
Expand Down Expand Up @@ -851,6 +853,7 @@ exports[`ItemBankViewer with revision model matches snapshot 1`] = `
}
bankKey="100"
itemKey="100"
namespace="Namespace"
revision="2"
sampleItemScoring={
Object {
Expand Down

0 comments on commit 5b1f9df

Please sign in to comment.