Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a20f13e

Browse files
committed
Update wrap-warning-with-env-check-test.js
1 parent b73cdc7 commit a20f13e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/babel/__tests__/wrap-warning-with-env-check-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ describe('wrap-warning-with-env-check', () => {
3636
it('should wrap warning calls', () => {
3737
compare(
3838
"warning(condition, 'a %s b', 'c');",
39-
"__DEV__ ? !condition ? warning(false, 'a %s b', 'c') : void 0 : void 0;"
39+
"!condition ? warning(false, 'a %s b', 'c') : void 0;"
4040
);
4141
});
4242

4343
it('should wrap warningWithoutStack calls', () => {
4444
compare(
4545
"warningWithoutStack(condition, 'a %s b', 'c');",
46-
"__DEV__ ? !condition ? warningWithoutStack(false, 'a %s b', 'c') : void 0 : void 0;"
46+
"!condition ? warningWithoutStack(false, 'a %s b', 'c') : void 0;"
4747
);
4848
});
4949

0 commit comments

Comments
 (0)