Browse Source

update tests

legacy-quote-reserved-properties
Rich-Harris 8 years ago
parent
commit
e8858ef137
  1. 2
      test/form/assignment-to-exports-class-declaration/_expected/amd.js
  2. 2
      test/form/assignment-to-exports-class-declaration/_expected/cjs.js
  3. 2
      test/form/assignment-to-exports-class-declaration/_expected/es.js
  4. 2
      test/form/assignment-to-exports-class-declaration/_expected/iife.js
  5. 2
      test/form/assignment-to-exports-class-declaration/_expected/umd.js
  6. 2
      test/form/side-effect-m/_expected/amd.js
  7. 2
      test/form/side-effect-m/_expected/cjs.js
  8. 2
      test/form/side-effect-m/_expected/es.js
  9. 2
      test/form/side-effect-m/_expected/iife.js
  10. 2
      test/form/side-effect-m/_expected/umd.js
  11. 4
      test/form/side-effect-p/_expected/amd.js
  12. 4
      test/form/side-effect-p/_expected/cjs.js
  13. 4
      test/form/side-effect-p/_expected/es.js
  14. 4
      test/form/side-effect-p/_expected/iife.js
  15. 4
      test/form/side-effect-p/_expected/umd.js
  16. 2
      test/form/this-is-undefined/_expected/amd.js
  17. 2
      test/form/this-is-undefined/_expected/cjs.js
  18. 2
      test/form/this-is-undefined/_expected/es.js
  19. 2
      test/form/this-is-undefined/_expected/iife.js
  20. 2
      test/form/this-is-undefined/_expected/umd.js

2
test/form/assignment-to-exports-class-declaration/_expected/amd.js

@ -1,6 +1,6 @@
define(['exports'], function (exports) { 'use strict';
exports.Foo = class Foo {}
exports.Foo = class Foo {};
exports.Foo = lol( exports.Foo );
Object.defineProperty(exports, '__esModule', { value: true });

2
test/form/assignment-to-exports-class-declaration/_expected/cjs.js

@ -2,5 +2,5 @@
Object.defineProperty(exports, '__esModule', { value: true });
exports.Foo = class Foo {}
exports.Foo = class Foo {};
exports.Foo = lol( exports.Foo );

2
test/form/assignment-to-exports-class-declaration/_expected/es.js

@ -1,4 +1,4 @@
let Foo = class Foo {}
let Foo = class Foo {};
Foo = lol( Foo );
export { Foo };

2
test/form/assignment-to-exports-class-declaration/_expected/iife.js

@ -1,7 +1,7 @@
(function (exports) {
'use strict';
exports.Foo = class Foo {}
exports.Foo = class Foo {};
exports.Foo = lol( exports.Foo );
}((this.myModule = this.myModule || {})));

2
test/form/assignment-to-exports-class-declaration/_expected/umd.js

@ -4,7 +4,7 @@
(factory((global.myModule = global.myModule || {})));
}(this, (function (exports) { 'use strict';
exports.Foo = class Foo {}
exports.Foo = class Foo {};
exports.Foo = lol( exports.Foo );
Object.defineProperty(exports, '__esModule', { value: true });

2
test/form/side-effect-m/_expected/amd.js

@ -10,7 +10,7 @@ define(function () { 'use strict';
var foo = odd( 12 );
function even ( n ) {
alert( counter++ )
alert( counter++ );
return n === 0 || odd( n - 1 );
}

2
test/form/side-effect-m/_expected/cjs.js

@ -10,7 +10,7 @@ var counter = 0;
var foo = odd( 12 );
function even ( n ) {
alert( counter++ )
alert( counter++ );
return n === 0 || odd( n - 1 );
}

2
test/form/side-effect-m/_expected/es.js

@ -8,7 +8,7 @@ var counter = 0;
var foo = odd( 12 );
function even ( n ) {
alert( counter++ )
alert( counter++ );
return n === 0 || odd( n - 1 );
}

2
test/form/side-effect-m/_expected/iife.js

@ -11,7 +11,7 @@
var foo = odd( 12 );
function even ( n ) {
alert( counter++ )
alert( counter++ );
return n === 0 || odd( n - 1 );
}

2
test/form/side-effect-m/_expected/umd.js

@ -14,7 +14,7 @@
var foo = odd( 12 );
function even ( n ) {
alert( counter++ )
alert( counter++ );
return n === 0 || odd( n - 1 );
}

4
test/form/side-effect-p/_expected/amd.js

@ -5,7 +5,7 @@ define(function () { 'use strict';
const hs = document.documentElement.style;
if ( bool ) {
hs.color = "#222"
hs.color = "#222";
}
});
});

4
test/form/side-effect-p/_expected/cjs.js

@ -5,5 +5,5 @@ var bool = true;
const hs = document.documentElement.style;
if ( bool ) {
hs.color = "#222"
}
hs.color = "#222";
}

4
test/form/side-effect-p/_expected/es.js

@ -3,5 +3,5 @@ var bool = true;
const hs = document.documentElement.style;
if ( bool ) {
hs.color = "#222"
}
hs.color = "#222";
}

4
test/form/side-effect-p/_expected/iife.js

@ -6,7 +6,7 @@
const hs = document.documentElement.style;
if ( bool ) {
hs.color = "#222"
hs.color = "#222";
}
}());
}());

4
test/form/side-effect-p/_expected/umd.js

@ -9,7 +9,7 @@
const hs = document.documentElement.style;
if ( bool ) {
hs.color = "#222"
hs.color = "#222";
}
})));
})));

2
test/form/this-is-undefined/_expected/amd.js

@ -10,7 +10,7 @@ define(function () { 'use strict';
const bar = () => {
// ...unless it's an arrow function
assert.strictEqual( undefined, undefined );
}
};
foo.call( fooContext );
bar.call( {} );

2
test/form/this-is-undefined/_expected/cjs.js

@ -10,7 +10,7 @@ function foo () {
const bar = () => {
// ...unless it's an arrow function
assert.strictEqual( undefined, undefined );
}
};
foo.call( fooContext );
bar.call( {} );

2
test/form/this-is-undefined/_expected/es.js

@ -8,7 +8,7 @@ function foo () {
const bar = () => {
// ...unless it's an arrow function
assert.strictEqual( undefined, undefined );
}
};
foo.call( fooContext );
bar.call( {} );

2
test/form/this-is-undefined/_expected/iife.js

@ -11,7 +11,7 @@
const bar = () => {
// ...unless it's an arrow function
assert.strictEqual( undefined, undefined );
}
};
foo.call( fooContext );
bar.call( {} );

2
test/form/this-is-undefined/_expected/umd.js

@ -14,7 +14,7 @@
const bar = () => {
// ...unless it's an arrow function
assert.strictEqual( undefined, undefined );
}
};
foo.call( fooContext );
bar.call( {} );

Loading…
Cancel
Save