Skip to content

Commit

Permalink
test: add architecture unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukey-aleios committed Jul 17, 2023
1 parent a0f343d commit 0910e55
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/aws-cdk-lib/aws-lambda/test/architecture.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

import { App, Stack } from '../../core';
import * as lambda from '../lib';

describe('architecture', () => {
const app = new App();
const stack = new Stack(app, 'stack');

test('toString to return the architecture name', () => {
// GIVEN
const testLambda = new lambda.Function(stack, 'testLambda', {
code: new lambda.InlineCode('foo'),
handler: 'index.handler',
runtime: lambda.Runtime.NODEJS_14_X,
},
);

// THEN
expect(`${testLambda.architecture}`).toEqual(testLambda.architecture.name);
});
});

0 comments on commit 0910e55

Please sign in to comment.