Skip to content

Commit

Permalink
assert => expect
Browse files Browse the repository at this point in the history
  • Loading branch information
tobuck-aws committed Mar 8, 2024
1 parent a661e3a commit 481dd84
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/control-plane.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { assert } from 'console';
import * as cdk from 'aws-cdk-lib';
import { Annotations, Match, Template, Capture } from 'aws-cdk-lib/assertions';
import { AwsSolutionsChecks } from 'cdk-nag';
Expand Down Expand Up @@ -118,7 +117,7 @@ describe('ControlPlane without Description', () => {
it('should have a fixed template description, when the containing stack does not have description', () => {
const actual = controlPlaneTestStack.templateOptions.description;
const expected = 'SaaS Builder Toolkit - CoreApplicationPlane (uksb-1tupboc57)';
assert(actual == expected);
expect(actual == expected);
});

it('should have a concatenated template description, when the containing stack has an existing desc', () => {
Expand All @@ -128,6 +127,6 @@ describe('ControlPlane without Description', () => {
});
const actual = stackWithDescription.templateOptions.description;
const expected = 'ABC - SaaS Builder Toolkit - CoreApplicationPlane (uksb-1tupboc57)';
assert(expected === actual);
expect(expected === actual);
});
});

0 comments on commit 481dd84

Please sign in to comment.