Skip to content

Commit

Permalink
Fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfacq committed Sep 21, 2023
1 parent 8c5db68 commit b9a95d6
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/__tests__/utils.test.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import { describe, test, expect } from 'vitest'
import { stringify } from '../utils'


describe('Utils', () => {
describe('stringify', () => {
test('Verify if stringify() works well', () => {

expect(stringify({})).toBe('')
describe('stringify', () => {
test('Verify if stringify() works well', () => {
expect(stringify({})).toBe('')

const obj1 = {
id: 123456789,
name: 'mock_name',
description: 'mock_description'
};
expect(stringify(obj1)).toBe('?id=123456789&name=mock_name&description=mock_description')
});
});
});
const obj1 = {
id: 123456789,
name: 'mock_name',
description: 'mock_description'
}
expect(stringify(obj1)).toBe('?id=123456789&name=mock_name&description=mock_description')
})
})
})

0 comments on commit b9a95d6

Please sign in to comment.