Skip to content

Commit 758b03b

Browse files
committed
Dist added
1 parent f241bde commit 758b03b

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

dist/__test__/index.spec.js

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ var _react2 = _interopRequireDefault(_react);
66

77
var _enzyme = require('enzyme');
88

9-
var _ = require('../');
9+
var _index = require('../../index');
10+
11+
var _server = require('../../server');
1012

1113
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1214

@@ -33,8 +35,8 @@ describe('Resolver', function () {
3335
while (1) {
3436
switch (_context.prev = _context.next) {
3537
case 0:
36-
MockComponentOne = (0, _.StaticCSS)(buildComponent('MyComponent'));
37-
MockComponentTwo = (0, _.StaticCSS)(buildComponent('MyComponent2'));
38+
MockComponentOne = (0, _index.StaticCSS)(buildComponent('MyComponent'));
39+
MockComponentTwo = (0, _index.StaticCSS)(buildComponent('MyComponent2'));
3840

3941
CustomApp = function CustomApp() {
4042
return _react2.default.createElement(
@@ -48,7 +50,7 @@ describe('Resolver', function () {
4850
);
4951
};
5052

51-
resolver = new _.Resolver(_react2.default.createElement(CustomApp), new _.FileSystemAdapter({
53+
resolver = new _server.Resolver(_react2.default.createElement(CustomApp), new _server.FileSystemAdapter({
5254
folderPath: __dirname,
5355
inline: false
5456
}));
@@ -78,7 +80,7 @@ describe('Resolver', function () {
7880
while (1) {
7981
switch (_context2.prev = _context2.next) {
8082
case 0:
81-
resolver = new _.Resolver(_react2.default.createElement((0, _.StaticCSS)(buildComponent('MyComponent'))), new _.FileSystemAdapter({
83+
resolver = new _server.Resolver(_react2.default.createElement((0, _index.StaticCSS)(buildComponent('MyComponent'))), new _server.FileSystemAdapter({
8284
folderPath: __dirname,
8385
inline: false
8486
}));
@@ -108,8 +110,8 @@ describe('Resolver', function () {
108110
while (1) {
109111
switch (_context3.prev = _context3.next) {
110112
case 0:
111-
MockComponentOne = (0, _.StaticCSS)(buildComponent('MyComponent'));
112-
MockComponentTwo = (0, _.StaticCSS)(buildComponent('MyComponent2'));
113+
MockComponentOne = (0, _index.StaticCSS)(buildComponent('MyComponent'));
114+
MockComponentTwo = (0, _index.StaticCSS)(buildComponent('MyComponent2'));
113115

114116
CustomApp = function CustomApp() {
115117
return _react2.default.createElement(
@@ -119,7 +121,7 @@ describe('Resolver', function () {
119121
);
120122
};
121123

122-
resolver = new _.Resolver(_react2.default.createElement(CustomApp), new _.FileSystemAdapter({
124+
resolver = new _server.Resolver(_react2.default.createElement(CustomApp), new _server.FileSystemAdapter({
123125
folderPath: __dirname,
124126
inline: false
125127
}));
@@ -155,8 +157,8 @@ describe('Resolver', function () {
155157
while (1) {
156158
switch (_context4.prev = _context4.next) {
157159
case 0:
158-
MockComponentOne = (0, _.StaticCSS)(buildComponent('MyComponent'));
159-
MockComponentTwo = (0, _.StaticCSS)(buildComponent('MyComponent-invalid'));
160+
MockComponentOne = (0, _index.StaticCSS)(buildComponent('MyComponent'));
161+
MockComponentTwo = (0, _index.StaticCSS)(buildComponent('MyComponent-invalid'));
160162

161163
CustomApp = function CustomApp() {
162164
return _react2.default.createElement(
@@ -166,7 +168,7 @@ describe('Resolver', function () {
166168
);
167169
};
168170

169-
resolver = new _.Resolver(_react2.default.createElement(CustomApp), new _.FileSystemAdapter({
171+
resolver = new _server.Resolver(_react2.default.createElement(CustomApp), new _server.FileSystemAdapter({
170172
folderPath: __dirname,
171173
inline: false
172174
}));
@@ -204,12 +206,12 @@ describe('Resolver', function () {
204206
while (1) {
205207
switch (_context5.prev = _context5.next) {
206208
case 0:
207-
MockComponentOne = (0, _.StaticCSS)(buildComponent('MyComponent'), {
209+
MockComponentOne = (0, _index.StaticCSS)(buildComponent('MyComponent'), {
208210
styles: function styles() {
209211
return ['UserDefinedStyles.css'];
210212
}
211213
});
212-
resolver = new _.Resolver(_react2.default.createElement(MockComponentOne), new _.FileSystemAdapter({
214+
resolver = new _server.Resolver(_react2.default.createElement(MockComponentOne), new _server.FileSystemAdapter({
213215
folderPath: __dirname,
214216
inline: false
215217
}));
@@ -246,8 +248,8 @@ describe('Resolver', function () {
246248
while (1) {
247249
switch (_context6.prev = _context6.next) {
248250
case 0:
249-
MockComponentOne = (0, _.StaticCSS)(buildComponent('MyComponent'));
250-
MockComponentTwo = (0, _.StaticCSS)(buildComponent('MyComponent2'));
251+
MockComponentOne = (0, _index.StaticCSS)(buildComponent('MyComponent'));
252+
MockComponentTwo = (0, _index.StaticCSS)(buildComponent('MyComponent2'));
251253

252254
CustomApp = function CustomApp() {
253255
return _react2.default.createElement(
@@ -257,7 +259,7 @@ describe('Resolver', function () {
257259
);
258260
};
259261

260-
resolver = new _.Resolver(_react2.default.createElement(CustomApp), new _.FileSystemAdapter({
262+
resolver = new _server.Resolver(_react2.default.createElement(CustomApp), new _server.FileSystemAdapter({
261263
folderPath: __dirname,
262264
inline: false
263265
}));
@@ -284,8 +286,8 @@ describe('Resolver', function () {
284286
while (1) {
285287
switch (_context7.prev = _context7.next) {
286288
case 0:
287-
MockComponentOne = (0, _.StaticCSS)(buildComponent('MyComponent'));
288-
MockComponentTwo = (0, _.StaticCSS)(buildComponent('MyComponent2'));
289+
MockComponentOne = (0, _index.StaticCSS)(buildComponent('MyComponent'));
290+
MockComponentTwo = (0, _index.StaticCSS)(buildComponent('MyComponent2'));
289291

290292
CustomApp = function CustomApp() {
291293
return _react2.default.createElement(
@@ -295,7 +297,7 @@ describe('Resolver', function () {
295297
);
296298
};
297299

298-
resolver = new _.Resolver(_react2.default.createElement(CustomApp), new _.FileSystemAdapter({
300+
resolver = new _server.Resolver(_react2.default.createElement(CustomApp), new _server.FileSystemAdapter({
299301
folderPath: __dirname,
300302
inline: true
301303
}));
@@ -325,8 +327,8 @@ describe('Resolver', function () {
325327
while (1) {
326328
switch (_context8.prev = _context8.next) {
327329
case 0:
328-
MockComponentOne = (0, _.StaticCSS)(buildComponent('MyComponent'));
329-
MockComponentTwo = (0, _.StaticCSS)(buildComponent('MyComponent2'));
330+
MockComponentOne = (0, _index.StaticCSS)(buildComponent('MyComponent'));
331+
MockComponentTwo = (0, _index.StaticCSS)(buildComponent('MyComponent2'));
330332

331333
CustomApp = function CustomApp() {
332334
return _react2.default.createElement(
@@ -336,7 +338,7 @@ describe('Resolver', function () {
336338
);
337339
};
338340

339-
resolver = new _.Resolver(_react2.default.createElement(CustomApp), new _.CDNAdapter({
341+
resolver = new _server.Resolver(_react2.default.createElement(CustomApp), new _server.CDNAdapter({
340342
cdnRoot: 'https://my-cdn.com'
341343
}));
342344
_context8.next = 6;
@@ -364,7 +366,7 @@ describe('Dynamic CSS React Container', function () {
364366
children: 'My fake content'
365367
};
366368

367-
var Component = (0, _.DynamicCSS)(buildComponent('MyComponent'));
369+
var Component = (0, _index.DynamicCSS)(buildComponent('MyComponent'));
368370
var instance = (0, _enzyme.mount)(_react2.default.createElement(Component, fakeProps));
369371

370372
expect(Component.displayName).toEqual('DynamicCSS');
@@ -380,7 +382,7 @@ describe('Dynamic CSS React Container', function () {
380382
while (1) {
381383
switch (_context9.prev = _context9.next) {
382384
case 0:
383-
resolver = new _.Resolver((0, _.DynamicCSS)(buildComponent()), new _.FileSystemAdapter({
385+
resolver = new _server.Resolver((0, _index.DynamicCSS)(buildComponent()), new _server.FileSystemAdapter({
384386
folderPath: __dirname,
385387
inline: false
386388
}));
@@ -408,7 +410,7 @@ describe('Static CSS React Container', function () {
408410
children: 'My fake content'
409411
};
410412

411-
var Component = (0, _.StaticCSS)(buildComponent('MyComponent'));
413+
var Component = (0, _index.StaticCSS)(buildComponent('MyComponent'));
412414
var instance = (0, _enzyme.mount)(_react2.default.createElement(Component, fakeProps));
413415

414416
expect(Component.displayName).toEqual('StaticCSS');
@@ -424,7 +426,7 @@ describe('Static CSS React Container', function () {
424426
while (1) {
425427
switch (_context10.prev = _context10.next) {
426428
case 0:
427-
resolver = new _.Resolver((0, _.StaticCSS)(buildComponent()), new _.FileSystemAdapter({
429+
resolver = new _server.Resolver((0, _index.StaticCSS)(buildComponent()), new _server.FileSystemAdapter({
428430
folderPath: __dirname,
429431
inline: false
430432
}));

0 commit comments

Comments
 (0)