Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaebradley committed Nov 13, 2017
1 parent 0a42234 commit 410e9b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/RouteTableCreatorIntegrationTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Route Table Creator Integration Test', () => {

it('Tests Route Table Creation', () => {
const table = tableCreator.create(route).toString();
const expected = '\u001b[90m┌────────────────────────────────────────┐\u001b[39m\n\u001b[90m│\u001b[39m From jae to baebae taking bar over foo \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬────┤\u001b[39m\n\u001b[90m│\u001b[39m Step #1 \u001b[90m│\u001b[39m foo \u001b[90m│\u001b[39m bar \u001b[90m│\u001b[39m baz \u001b[90m│\u001b[39m 🚗 \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼────┤\u001b[39m\n\u001b[90m│\u001b[39m Step #2 \u001b[90m│\u001b[39m foo \u001b[90m│\u001b[39m bar \u001b[90m│\u001b[39m baz \u001b[90m│\u001b[39m 🚗 \u001b[90m│\u001b[39m\n\u001b[90m├───────────┴───────┴───────┴───────┴────┤\u001b[39m\n\u001b[90m│\u001b[39m From jae to baebae taking bar over foo \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬────┤\u001b[39m\n\u001b[90m│\u001b[39m Step #1 \u001b[90m│\u001b[39m foo \u001b[90m│\u001b[39m bar \u001b[90m│\u001b[39m baz \u001b[90m│\u001b[39m 🚗 \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼────┤\u001b[39m\n\u001b[90m│\u001b[39m Step #2 \u001b[90m│\u001b[39m foo \u001b[90m│\u001b[39m bar \u001b[90m│\u001b[39m baz \u001b[90m│\u001b[39m 🚗 \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┼───────┴───────┴───────┴────┤\u001b[39m\n\u001b[90m│\u001b[39m Summary \u001b[90m│\u001b[39m summary \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┼────────────────────────────┤\u001b[39m\n\u001b[90m│\u001b[39m Warnings \u001b[90m│\u001b[39m warning,another warning \u001b[90m│\u001b[39m\n\u001b[90m└───────────\u001b[39m\u001b[90m┴────────────────────────────┘\u001b[39m';
const expected = '┌────────────────────────────────────────┐\n│ From jae to baebae taking bar over foo │\n├───────────┬───────┬───────┬───────┬────┤\n│ Step #1 │ foo │ bar │ baz │ 🚗 │\n├───────────┼───────┼───────┼───────┼────┤\n│ Step #2 │ foo │ bar │ baz │ 🚗 │\n├───────────┴───────┴───────┴───────┴────┤\n│ From jae to baebae taking bar over foo │\n├───────────┬───────┬───────┬───────┬────┤\n│ Step #1 │ foo │ bar │ baz │ 🚗 │\n├───────────┼───────┼───────┼───────┼────┤\n│ Step #2 │ foo │ bar │ baz │ 🚗 │\n├───────────┼───────┴───────┴───────┴────┤\n│ Summary │ summary │\n├───────────┼────────────────────────────┤\n│ Warnings │ warning,another warning │\n└───────────┴────────────────────────────┘';
console.log(table);
expect(table).to.eql(expected);
});
Expand Down

0 comments on commit 410e9b6

Please sign in to comment.