Skip to content

Commit 9f3595f

Browse files
committed
chore: update snapshots
1 parent 3066591 commit 9f3595f

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

test/__snapshots__/loader.test.js.snap

+47
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ exports[`loader should work with object value with "default" syntax: warnings 1`
381381

382382
exports[`loader should work with object value: errors 1`] = `[]`;
383383

384+
exports[`loader should work with object value: errors 2`] = `[]`;
385+
384386
exports[`loader should work with object value: module 1`] = `
385387
"var Foo = Foo || {};
386388
var Bar = Bar || {};
@@ -416,6 +418,41 @@ export {
416418
"
417419
`;
418420

421+
exports[`loader should work with object value: module 2`] = `
422+
"var Foo = Foo || {};
423+
var Bar = Bar || {};
424+
var Baz = {
425+
nestedNumber: '12',
426+
nestedFunction: function test() {}
427+
};
428+
var simple = function simple() {};
429+
var simple_foo = [1, 2, 3, 4, 5];
430+
431+
Foo.Image = function(width, height, data){
432+
this.width = width || 0;
433+
this.height = height || 0;
434+
this.data = data || [];
435+
};
436+
437+
Bar.test = [1, 2, 3, 4];
438+
439+
class MyClass {
440+
myFunction() {
441+
return 12;
442+
}
443+
}
444+
445+
const single = 'single';
446+
447+
const myVariable = new MyClass();
448+
449+
/*** EXPORTS FROM exports-loader ***/
450+
export {
451+
Foo
452+
};
453+
"
454+
`;
455+
419456
exports[`loader should work with object value: result 1`] = `
420457
{
421458
"Foo": {
@@ -424,8 +461,18 @@ exports[`loader should work with object value: result 1`] = `
424461
}
425462
`;
426463

464+
exports[`loader should work with object value: result 2`] = `
465+
{
466+
"Foo": {
467+
"Image": [Function],
468+
},
469+
}
470+
`;
471+
427472
exports[`loader should work with object value: warnings 1`] = `[]`;
428473

474+
exports[`loader should work with object value: warnings 2`] = `[]`;
475+
429476
exports[`loader should work with source maps when the "devtool" option is enabled: errors 1`] = `[]`;
430477

431478
exports[`loader should work with source maps when the "devtool" option is enabled: module 1`] = `

0 commit comments

Comments
 (0)