Skip to content

Commit ccd34c7

Browse files
nirmaozNir Maoz
authored andcommitted
Update tests to fail when component is not exported
1 parent a15c926 commit ccd34c7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

test/AudioTest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react';
22
import chai, {expect} from 'chai';
33
import {shallow, mount} from 'enzyme';
4-
import Audio from '../src/components/Audio';
5-
import Transformation from '../src/components/Transformation';
4+
import cloudinary from './cloudinary-proxy';
5+
const {Audio, Transformation} = cloudinary;
66

77
chai.use(require('chai-string'));
88

test/VideoTest.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import React from 'react';
22
import chai, {expect} from 'chai';
33
import {shallow, mount} from 'enzyme';
4-
import Video from '../src/components/Video';
5-
import Transformation from '../src/components/Transformation';
6-
4+
import cloudinary from './cloudinary-proxy';
5+
const {Video, Transformation} = cloudinary;
76
chai.use(require('chai-string'));
87

98
describe('Video', () => {

0 commit comments

Comments
 (0)