Skip to content

Commit 239b3a2

Browse files
authored
Merge pull request #19 from IGionny/master
Simply fix 2 tests: dictionaries and privateSetter
2 parents e4e807d + 0e2c4a4 commit 239b3a2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/legacy/dictionaries.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace MyNamespace.Domain\n\
1414

1515
var expectedOutput = "declare interface MyPoco {\n\
1616
Stuff: {\n\
17-
[: number]: string;\n\
17+
[key: number]: string;\n\
1818
};\n\
1919
}";
2020

@@ -24,7 +24,7 @@ describe('typescript-cs-poco', function() {
2424
it('should transform a POCO with a dictionary property correctly', function() {
2525

2626
var result = LegacyAdapter(sampleFile);
27-
27+
2828
expect(result).toEqual(expectedOutput);
2929
});
3030
});

spec/legacy/privateSetter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ namespace MyNamespace.Domain\n\
2020
}\n";
2121

2222
var expectedOutput = "declare interface MyPoco {\n\
23-
PrivateSetter: string;\n\
24-
InterestingWhitespace: string;\n\
23+
readonly PrivateSetter: string;\n\
24+
readonly InterestingWhitespace: string;\n\
2525
}";
2626

2727
var LegacyAdapter = require('../../dist/spec/legacy/adapters/legacyAdapter.js');

0 commit comments

Comments
 (0)