Skip to content

Commit 96f9455

Browse files
committed
uo
1 parent feba3cc commit 96f9455

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

tests/integration/export/stream.spec.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,14 @@ describe('CSV Export Streaming', () => {
5757
data: {
5858
storeId: testStoreId,
5959
orderNumber: `TEST-${i.toString().padStart(5, '0')}`,
60-
customerEmail: `customer${i}@test.com`,
6160
status: 'PENDING',
61+
subtotal: (i + 1) * 10,
62+
taxAmount: 0,
63+
shippingAmount: 0,
64+
discountAmount: 0,
6265
totalAmount: (i + 1) * 10,
63-
currency: 'USD',
6466
paymentMethod: 'CREDIT_CARD',
67+
paymentStatus: 'PENDING',
6568
},
6669
})
6770
)
@@ -150,15 +153,18 @@ describe('CSV Export Streaming', () => {
150153
});
151154

152155
it('should handle CSV field escaping', async () => {
153-
const order = await db.order.create({
156+
await db.order.create({
154157
data: {
155158
storeId: testStoreId,
156159
orderNumber: 'TEST-ESCAPE',
157-
customerEmail: 'test"comma,newline\nuser@test.com',
158160
status: 'PENDING',
161+
subtotal: 100,
162+
taxAmount: 0,
163+
shippingAmount: 0,
164+
discountAmount: 0,
159165
totalAmount: 100,
160-
currency: 'USD',
161166
paymentMethod: 'CREDIT_CARD',
167+
paymentStatus: 'PENDING',
162168
},
163169
});
164170

0 commit comments

Comments
 (0)