Skip to content

Commit

Permalink
fix: fix data issue for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 23, 2020
1 parent 9e62485 commit 7bde871
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,32 @@ describe('LedgeMermaidComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(LedgeMermaidComponent);
component = fixture.componentInstance;
component.data = `
\`\`\`mermaid
gantt
\ttitle 双周迭代模型
\tdateFormat YYYY-MM-DD
axisFormat W%U
\tsection A 组
\t需求评审排期 :a1, 2020-01-05, 7d
\t提供 UI 素材 :a2, after a1 ,7d
\tAPI 开发 :a3, after a1 , 7d
\t第一周开始 :done, a4, after a3 , 7d
\t第二周开始 :done, a5, after a4 , 7d
\t提测 :crit, a6, after a5 , 7d
灰度全量 :crit, a7, after a6 , 3d
\tsection B 组
\t需求评审排期 :b1, 2020-01-19, 7d
\t提供 UI 素材 :b2, after b1 ,7d
\tAPI 开发 :b3, after b1 , 7d
\t第一周开始 :done, b4, after b3 , 7d
\t第二周开始 :done, b5, after b4 , 7d
\t提测 :crit, b6, after b5 , 7d
灰度全量 :crit, b7, after b6 , 3d
\`\`\`
`;
fixture.detectChanges();
});

Expand Down

0 comments on commit 7bde871

Please sign in to comment.