Skip to content

Commit

Permalink
chore: 修复曲线单测
Browse files Browse the repository at this point in the history
  • Loading branch information
xuying.xu committed Sep 19, 2024
1 parent d86ee8c commit be2d9ed
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions packages/f2/test/components/line/line.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,44 @@ describe('折线图', () => {
});

it('曲线', async () => {
const data = [
{
time: '2016-08-08 00:00:00',
tem: 10,
},
{
time: '2016-08-08 00:10:00',
tem: 22,
},
{
time: '2016-08-08 00:30:00',
tem: 20,
},
{
time: '2016-08-09 00:35:00',
tem: 26,
},
{
time: '2016-08-09 01:00:00',
tem: 20,
},
{
time: '2016-08-09 01:20:00',
tem: 26,
},
{
time: '2016-08-10 01:40:00',
tem: 28,
},
{
time: '2016-08-10 02:00:00',
tem: 20,
},
{
time: '2016-08-10 02:20:00',
tem: 18,
},
];
const context = createContext('曲线');
const chartRef = { current: null };
const lineRef = { current: null };
Expand Down

0 comments on commit be2d9ed

Please sign in to comment.