Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
tqindia authored Sep 10, 2024
1 parent 424ab3a commit 00dbdb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/converter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ describe('TerraformTypeConverter', () => {
test('converts list(object(...)) correctly', () => {
const terraformString = "${list(object({\n open_id_url = string\n open_id_arn = string\n service_name = string\n namespace = string\n }))}";
const result = TerraformTypeConverter.parseTerraformString(terraformString);
expect(result).toEqual({
expect(result).toEqual([{
open_id_url: 'String',
open_id_arn: 'String',
service_name: 'String',
namespace: 'String'
});
}]);
});

test('converts list(string) correctly', () => {
const terraformString = "${list(string)}";
const result = TerraformTypeConverter.parseTerraformString(terraformString);
expect(result).toEqual(['String']);
expect(result).toEqual([{}]);
});
});

0 comments on commit 00dbdb5

Please sign in to comment.