We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4deef92 commit 0078a9cCopy full SHA for 0078a9c
test/custom-pragma.test.js
@@ -0,0 +1,15 @@
1
+/** @jsx createElement */
2
+
3
+describe('Custom JSX Pragma', () => {
4
+ it('should use custom babel config', () => {
5
+ let h = jasmine.createSpy('h');
6
+ let createElement = jasmine.createSpy('createElement');
7
+ let React = { createElement: jasmine.createSpy('React.createElement') };
8
9
+ (<div id="foo">hello</div>);
10
11
+ expect(h).not.toHaveBeenCalled();
12
+ expect(React.createElement).not.toHaveBeenCalled();
13
+ expect(createElement).toHaveBeenCalledWith('div', { id: 'foo' }, 'hello');
14
+ });
15
+});
0 commit comments