Skip to content

Commit

Permalink
chore: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ersachin3112 committed Jul 28, 2024
1 parent 3066591 commit 9f3595f
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions test/__snapshots__/loader.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ exports[`loader should work with object value with "default" syntax: warnings 1`

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

exports[`loader should work with object value: errors 2`] = `[]`;

exports[`loader should work with object value: module 1`] = `
"var Foo = Foo || {};
var Bar = Bar || {};
Expand Down Expand Up @@ -416,6 +418,41 @@ export {
"
`;

exports[`loader should work with object value: module 2`] = `
"var Foo = Foo || {};
var Bar = Bar || {};
var Baz = {
nestedNumber: '12',
nestedFunction: function test() {}
};
var simple = function simple() {};
var simple_foo = [1, 2, 3, 4, 5];
Foo.Image = function(width, height, data){
this.width = width || 0;
this.height = height || 0;
this.data = data || [];
};
Bar.test = [1, 2, 3, 4];
class MyClass {
myFunction() {
return 12;
}
}
const single = 'single';
const myVariable = new MyClass();
/*** EXPORTS FROM exports-loader ***/
export {
Foo
};
"
`;

exports[`loader should work with object value: result 1`] = `
{
"Foo": {
Expand All @@ -424,8 +461,18 @@ exports[`loader should work with object value: result 1`] = `
}
`;

exports[`loader should work with object value: result 2`] = `
{
"Foo": {
"Image": [Function],
},
}
`;

exports[`loader should work with object value: warnings 1`] = `[]`;

exports[`loader should work with object value: warnings 2`] = `[]`;

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

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

0 comments on commit 9f3595f

Please sign in to comment.