mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-05 18:11:23 +01:00
feat: add string utility tests and vitest browser configuration
This commit is contained in:
parent
81c1ba2963
commit
a89694d5c4
5 changed files with 587 additions and 5 deletions
8
src/utils/stringUtils.test.ts
Normal file
8
src/utils/stringUtils.test.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { expect, describe, it } from 'vitest'
|
||||
import { round } from './stringUtils'
|
||||
|
||||
describe('round', () => {
|
||||
it('should be able to handle undefined input', () => {
|
||||
expect(round(undefined)).toBe("");
|
||||
});
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue