Skip to content

Commit

Permalink
Tweak: import fbt from the library, rather than the internal `fbt._…
Browse files Browse the repository at this point in the history
…*` library (#30)
kayhadrin authored Jan 9, 2025
1 parent bebe599 commit b533ca3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/fbtee/src/__tests__/list-test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from '@jest/globals';
import getFbtResult from '../__mocks__/getFbtResult.tsx';
import fbt from '../fbt.tsx';
import { fbt } from '../index.tsx';
import list from '../list.tsx';
import setupFbtee from '../setupFbtee.tsx';
import IntlViewerContext from '../ViewerContext.tsx';
@@ -60,17 +60,13 @@ test('fbt.list()', () => {
expect(
fbt(
'Available Locations: ' +
// @ts-expect-error
fbt.list('locations', ['Tokyo', 'London', 'Vienna']),
'Lists',
),
).toMatchSnapshot();
});

test('<fbt:list>', () => {
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
fbt;

expect(
<fbt desc="Lists">
Available Locations:{' '}

0 comments on commit b533ca3

Please sign in to comment.