Skip to content

Commit

Permalink
test(utils): fix batch settings test case
Browse files Browse the repository at this point in the history
ysfscream authored and Kinplemelon committed Dec 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 18d5896 commit 18d35ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/utils/lib/__test__/useBatchSettings.test.ts
Original file line number Diff line number Diff line change
@@ -88,20 +88,20 @@ describe('useBatchSettings', () => {
it('should process IoTDB data correctly', async () => {
const data = [
['timestamp', 'measurement', 'data_type', 'value'],
['2022-01-01', 'temperature', 'FLOAT', '25.5'],
['2022-01-02', 'humidity', 'INT32', '60'],
['2022-01-01', 'temperature', 'float', '25.5'],
['2022-01-02', 'humidity', 'int32', '60'],
]
const expectedOutput = [
{
timestamp: '2022-01-01',
measurement: 'temperature',
data_type: 'FLOAT',
data_type: 'float',
value: '25.5',
},
{
timestamp: '2022-01-02',
measurement: 'humidity',
data_type: 'INT32',
data_type: 'int32',
value: '60',
},
]

0 comments on commit 18d35ca

Please sign in to comment.