Skip to content

Commit

Permalink
#2170 Adjusting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Jul 5, 2021
1 parent 5437ab7 commit 67050e4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/diagrams/flowchart/parser/flow-singlenode.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('[Singlenodes] when parsing', () => {

expect(edges.length).toBe(0);
expect(vert['a'].type).toBe('diamond');
expect(vert['a'].text).toBe('A <br/> end');
expect(vert['a'].text).toBe('A <br> end');
});

it('should handle a single hexagon node', function() {
Expand All @@ -144,7 +144,7 @@ describe('[Singlenodes] when parsing', () => {

expect(edges.length).toBe(0);
expect(vert['a'].type).toBe('hexagon');
expect(vert['a'].text).toBe('A <br/> end');
expect(vert['a'].text).toBe('A <br> end');
});

it('should handle a single round node with html in it', function() {
Expand All @@ -156,7 +156,7 @@ describe('[Singlenodes] when parsing', () => {

expect(edges.length).toBe(0);
expect(vert['a'].type).toBe('round');
expect(vert['a'].text).toBe('A <br/> end');
expect(vert['a'].text).toBe('A <br> end');
});

it('should handle a single node with alphanumerics starting on a char', function() {
Expand Down
2 changes: 1 addition & 1 deletion src/diagrams/flowchart/parser/flow-text.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ describe('[Text] when parsing', () => {
const edges = flow.parser.yy.getEdges();

expect(vert['C'].type).toBe('round');
expect(vert['C'].text).toBe('Chimpansen hoppar åäö <br/> - ÅÄÖ');
expect(vert['C'].text).toBe('Chimpansen hoppar åäö <br> - ÅÄÖ');
});
// xit('it should handle åäö, minus and space and br',function(){
// const res = flow.parser.parse('graph TD; A[Object&#40;foo,bar&#41;]-->B(Thing);');
Expand Down
12 changes: 6 additions & 6 deletions src/diagrams/flowchart/parser/flow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ describe('when parsing ', function() {
charTest('<', '&lt;');
});

it("it should be able to parse a '>'", function() {
charTest('>', '&gt;');
});
// it("it should be able to parse a '>'", function() {
// charTest('>', '&gt;');
// });

it("it should be able to parse a '='", function() {
charTest('=', '&equals;');
});
// it("it should be able to parse a '='", function() {
// charTest('=', '&equals;');
// });
it("it should be able to parse a '&'", function() {
charTest('&');
});
Expand Down

0 comments on commit 67050e4

Please sign in to comment.