Skip to content

Commit

Permalink
add tests for web prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredh159 committed Jun 18, 2024
1 parent 57b3a0f commit 340c508
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/__tests__/prefix-match.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ describe(`tw.prefixMatch()`, () => {
tw = create();
expect(tw.prefixMatch(`ios`)).toBe(false);
expect(tw.prefixMatch(`android`)).toBe(true);
expect(tw`web:self-center`).toEqual({});
rn.Platform.OS = `web`;
tw = create();
expect(tw.prefixMatch(`ios`)).toBe(false);
expect(tw.prefixMatch(`android`)).toBe(false);
expect(tw.prefixMatch(`web`)).toBe(true);
expect(tw`web:self-center`).toEqual({ alignSelf: `center` });
});

test(`breakpoint prefixes`, () => {
Expand Down

0 comments on commit 340c508

Please sign in to comment.