Skip to content

Commit 3d3976b

Browse files
committed
Added assertions to "QueryResult to RPG data structure" test
1 parent 824e62b commit 3d3976b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/views/results/codegen.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ test('QueryResult to RPG data structure', () => {
8787
const lines = ds.split('\n').filter(l => l !== '');
8888
expect(lines.length).toBe(5);
8989
expect(lines.at(0)).toBe('dcl-ds row_t qualified template;');
90+
expect(lines.at(1).trim()).toBe('id int(10);');
91+
expect(lines.at(2).trim()).toBe('name varchar(80);');
92+
expect(lines.at(3).trim()).toBe('salary packed(13 : 2);');
9093
expect(lines.at(4)).toBe('end-ds;');
9194
});
9295

0 commit comments

Comments
 (0)