Skip to content

Commit 340c508

Browse files
committed
add tests for web prefix
1 parent 57b3a0f commit 340c508

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/__tests__/prefix-match.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ describe(`tw.prefixMatch()`, () => {
2525
tw = create();
2626
expect(tw.prefixMatch(`ios`)).toBe(false);
2727
expect(tw.prefixMatch(`android`)).toBe(true);
28+
expect(tw`web:self-center`).toEqual({});
29+
rn.Platform.OS = `web`;
30+
tw = create();
31+
expect(tw.prefixMatch(`ios`)).toBe(false);
32+
expect(tw.prefixMatch(`android`)).toBe(false);
33+
expect(tw.prefixMatch(`web`)).toBe(true);
34+
expect(tw`web:self-center`).toEqual({ alignSelf: `center` });
2835
});
2936

3037
test(`breakpoint prefixes`, () => {

0 commit comments

Comments
 (0)