Skip to content

Commit 5da2666

Browse files
committed
fix: dds keyword values
1 parent 71d9d02 commit 5da2666

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/tests/dspf.test.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,22 @@ describe('DisplayFile tests', () => {
7676

7777
field.keywords.push(
7878
{
79-
name: "COLOR(BLU)",
79+
name: "COLOR",
80+
value: "BLU",
8081
conditions: []
8182
},
8283
{
83-
name: "DSPATR(PR)",
84-
conditions: [{
85-
indicator: 21,
86-
negate: true
87-
}]
84+
name: "DSPATR",
85+
value: "PR",
86+
conditions: []
8887
}
8988
);
9089

9190
lines = DisplayFile.getLinesForField(field);
9291
expect(lines.length).toBe(3);
9392
expect(lines[0]).toBe(` A 4 10'Some text'`);
9493
expect(lines[1]).toBe(` A COLOR(BLU)`);
95-
expect(lines[2]).toBe(` A N21 DSPATR(PR)`);
94+
expect(lines[2]).toBe(` A DSPATR(PR)`);
9695

9796
});
9897

0 commit comments

Comments
 (0)