mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-20 20:42:57 -05:00
22 lines
623 B
React
22 lines
623 B
React
|
const React = require('react');
|
||
|
const {shallowWithIntl} = require('../../helpers/intl-helpers.jsx');
|
||
|
const Page = require('../../../src/components/page/www/page.jsx');
|
||
|
|
||
|
describe('Page', () => {
|
||
|
test('Do not show donor recognition', () => {
|
||
|
const component = shallowWithIntl(
|
||
|
<Page />
|
||
|
);
|
||
|
expect(component.find('#donor')).toHaveLength(0);
|
||
|
});
|
||
|
|
||
|
test('Show donor recognition', () => {
|
||
|
const component = shallowWithIntl(
|
||
|
<Page
|
||
|
showDonorRecognition
|
||
|
/>
|
||
|
);
|
||
|
expect(component.find('#donor')).toHaveLength(1);
|
||
|
});
|
||
|
});
|