Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-dynamodb/lib/billing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export abstract class Billing {
/**
* Specify the number of reads and writes per second that you need for your application.
*
* @param props specifiy read and write capacity configurations.
* @param props specify read and write capacity configurations.
*/
public static provisioned(props: ThroughputProps): Billing {
return new (class extends Billing {
Expand Down
16 changes: 8 additions & 8 deletions packages/aws-cdk-lib/aws-dynamodb/test/dynamodb.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -846,14 +846,14 @@ describe('schema details', () => {
});
});

test('get scheama for table with hash key only', () => {
test('get schema for table with hash key only', () => {
expect(table.schema()).toEqual({
partitionKey: TABLE_PARTITION_KEY,
sortKey: undefined,
});
});

test('get scheama for table with hash key + range key', () => {
test('get schema for table with hash key + range key', () => {
table = new Table(stack, 'TableB', {
tableName: TABLE_NAME,
partitionKey: TABLE_PARTITION_KEY,
Expand All @@ -866,7 +866,7 @@ describe('schema details', () => {
});
});

test('get scheama for GSI with hash key', () => {
test('get schema for GSI with hash key', () => {
table.addGlobalSecondaryIndex({
indexName: GSI_NAME,
partitionKey: GSI_PARTITION_KEY,
Expand All @@ -878,7 +878,7 @@ describe('schema details', () => {
});
});

test('get scheama for GSI with hash key + range key', () => {
test('get schema for GSI with hash key + range key', () => {
table.addGlobalSecondaryIndex({
indexName: GSI_NAME,
partitionKey: GSI_PARTITION_KEY,
Expand All @@ -891,7 +891,7 @@ describe('schema details', () => {
});
});

test('get scheama for LSI', () => {
test('get schema for LSI', () => {
table.addLocalSecondaryIndex({
indexName: LSI_NAME,
sortKey: LSI_SORT_KEY,
Expand All @@ -903,7 +903,7 @@ describe('schema details', () => {
});
});

test('get scheama for multiple secondary indexes', () => {
test('get schema for multiple secondary indexes', () => {
table.addLocalSecondaryIndex({
indexName: LSI_NAME,
sortKey: LSI_SORT_KEY,
Expand All @@ -926,7 +926,7 @@ describe('schema details', () => {
});
});

test('get scheama for unknown secondary index', () => {
test('get schema for unknown secondary index', () => {
expect(() => table.schema(GSI_NAME))
.toThrow(/Cannot find schema for index: MyGSI. Use 'addGlobalSecondaryIndex' or 'addLocalSecondaryIndex' to add index/);
});
Expand Down Expand Up @@ -1324,7 +1324,7 @@ test('when adding a global secondary index without specifying read and write cap
);
});

test.each([true, false])('when adding a global secondary index with contributoreIngishtsEnabled %s', (contributorInsightsEnabled: boolean) => {
test.each([true, false])('when adding a global secondary index with contributorInsightsEnabled %s', (contributorInsightsEnabled: boolean) => {
const stack = new Stack();
const table = new Table(stack, CONSTRUCT_NAME, {
partitionKey: TABLE_PARTITION_KEY,
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-dynamodb/test/table-v2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2312,7 +2312,7 @@ describe('secondary indexes', () => {
});
});

test('with global secondary index wihtout read capacity inherits from table when billing mode is provisioned', () => {
test('with global secondary index without read capacity inherits from table when billing mode is provisioned', () => {
// GIVEN
const stack = new Stack(undefined, 'Stack');

Expand Down
Loading