-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
duplicate REGENERATE_METHOD constant in RHL, #807
- Loading branch information
Showing
3 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// the same as before | ||
const PREFIX = '__reactstandin__' | ||
export const REGENERATE_METHOD = `${PREFIX}regenerateByEval` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { REGENERATE_METHOD as REGENERATE_METHOD_rhl } from '../src/internal/constants' | ||
import { REGENERATE_METHOD as REGENERATE_METHOD_std } from 'react-stand-in' | ||
|
||
describe('Consistency tests', () => { | ||
it('Should be constant con', () => { | ||
expect(REGENERATE_METHOD_rhl).toBe(REGENERATE_METHOD_std) | ||
}) | ||
}) |