Skip to content

Commit

Permalink
feat: add example test for lambda handler
Browse files Browse the repository at this point in the history
  • Loading branch information
sbstjn committed Dec 17, 2020
1 parent 2766d5f commit c6abd2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect as expectCDK, haveResource } from '@aws-cdk/assert'
import * as cdk from '@aws-cdk/core'

import * as Example from '../../aws/stacks/example'
import * as Example from '../../../aws/stacks/example'

test('SQS Queue Created', () => {
const app = new cdk.App()
Expand Down
7 changes: 7 additions & 0 deletions test/src/lambda/handler.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { run } from '../../../src/lambda/handler'

describe('Handler', () => {
it('returns string value', async () => {
await expect(run()).resolves.toBe("Done")
})
})

0 comments on commit c6abd2f

Please sign in to comment.