Skip to content

Commit

Permalink
chore: move tests inside src dir
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 committed Dec 1, 2024
1 parent ca4db5c commit e19ed82
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/get.test.ts → src/tests/get.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { it, expect } from 'vitest';
import { locales } from '../src/test';
import { locales } from '../test';

it('should give multiple keys correctly for both langs', () => {
expect(locales.t('hello', {}, 'en')).toBe('Hello');
Expand Down
2 changes: 1 addition & 1 deletion tests/getInterps.test.ts → src/tests/getInterps.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { it, expect } from 'vitest';
import { locales } from '../src/test';
import { locales } from '../test';

it('should return values with interpolations replaced', () => {
expect(locales.t('interp.hello', { int: 'noway' }, 'en')).toBe('Hello noway');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { it, expect } from 'vitest';
import { locales } from '../src/test.js';
import { locales } from '../test';

it('should give multiple keys correctly for both langs', () => {
expect(locales.localizationFor('hello')).toEqual({
Expand Down
File renamed without changes.

0 comments on commit e19ed82

Please sign in to comment.