Browse Source

add some failing tests to sort out later

contingency-plan
Rich Harris 10 years ago
parent
commit
a6e709fcb7
  1. 7
      test/form/indent-false/_config.js
  2. 9
      test/form/indent-false/_expected/amd.js
  3. 7
      test/form/indent-false/_expected/cjs.js
  4. 5
      test/form/indent-false/_expected/es6.js
  5. 9
      test/form/indent-false/_expected/iife.js
  6. 13
      test/form/indent-false/_expected/umd.js
  7. 3
      test/form/indent-false/main.js
  8. 7
      test/form/indent-true-spaces/_config.js
  9. 9
      test/form/indent-true-spaces/_expected/amd.js
  10. 7
      test/form/indent-true-spaces/_expected/cjs.js
  11. 5
      test/form/indent-true-spaces/_expected/es6.js
  12. 9
      test/form/indent-true-spaces/_expected/iife.js
  13. 13
      test/form/indent-true-spaces/_expected/umd.js
  14. 3
      test/form/indent-true-spaces/main.js
  15. 7
      test/form/indent-true/_config.js
  16. 9
      test/form/indent-true/_expected/amd.js
  17. 7
      test/form/indent-true/_expected/cjs.js
  18. 5
      test/form/indent-true/_expected/es6.js
  19. 9
      test/form/indent-true/_expected/iife.js
  20. 13
      test/form/indent-true/_expected/umd.js
  21. 3
      test/form/indent-true/main.js
  22. 8
      test/function/export-default-named-function/_config.js
  23. 3
      test/function/export-default-named-function/main.js

7
test/form/indent-false/_config.js

@ -0,0 +1,7 @@
module.exports = {
description: 'does not indent with indent: false',
options: {
moduleName: 'foo',
indent: false
}
};

9
test/form/indent-false/_expected/amd.js

@ -0,0 +1,9 @@
define(function () { 'use strict';
function foo () {
console.log( 'indented with tabs' );
}
return foo;
});

7
test/form/indent-false/_expected/cjs.js

@ -0,0 +1,7 @@
'use strict';
function foo () {
console.log( 'indented with tabs' );
}
module.exports = foo;

5
test/form/indent-false/_expected/es6.js

@ -0,0 +1,5 @@
function foo () {
console.log( 'indented with tabs' );
}
export default foo;

9
test/form/indent-false/_expected/iife.js

@ -0,0 +1,9 @@
var foo = (function () { 'use strict';
function foo () {
console.log( 'indented with tabs' );
}
return foo;
})();

13
test/form/indent-false/_expected/umd.js

@ -0,0 +1,13 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
global.foo = factory();
}(this, function () { 'use strict';
function foo () {
console.log( 'indented with tabs' );
}
return foo;
}));

3
test/form/indent-false/main.js

@ -0,0 +1,3 @@
export default function foo () {
console.log( 'indented with tabs' );
}

7
test/form/indent-true-spaces/_config.js

@ -0,0 +1,7 @@
module.exports = {
description: 'auto-indents with spaces and indent: true',
options: {
moduleName: 'foo',
indent: true
}
};

9
test/form/indent-true-spaces/_expected/amd.js

@ -0,0 +1,9 @@
define(function () { 'use strict';
function foo () {
console.log( 'indented with spaces' );
}
return foo;
});

7
test/form/indent-true-spaces/_expected/cjs.js

@ -0,0 +1,7 @@
'use strict';
function foo () {
console.log( 'indented with spaces' );
}
module.exports = foo;

5
test/form/indent-true-spaces/_expected/es6.js

@ -0,0 +1,5 @@
function foo () {
console.log( 'indented with spaces' );
}
export default foo;

9
test/form/indent-true-spaces/_expected/iife.js

@ -0,0 +1,9 @@
var foo = (function () { 'use strict';
function foo () {
console.log( 'indented with spaces' );
}
return foo;
})();

13
test/form/indent-true-spaces/_expected/umd.js

@ -0,0 +1,13 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
global.foo = factory();
}(this, function () { 'use strict';
function foo () {
console.log( 'indented with spaces' );
}
return foo;
}));

3
test/form/indent-true-spaces/main.js

@ -0,0 +1,3 @@
export default function foo () {
console.log( 'indented with spaces' );
}

7
test/form/indent-true/_config.js

@ -0,0 +1,7 @@
module.exports = {
description: 'auto-indents with indent: true',
options: {
moduleName: 'foo',
indent: true
}
};

9
test/form/indent-true/_expected/amd.js

@ -0,0 +1,9 @@
define(function () { 'use strict';
function foo () {
console.log( 'indented with tabs' );
}
return foo;
});

7
test/form/indent-true/_expected/cjs.js

@ -0,0 +1,7 @@
'use strict';
function foo () {
console.log( 'indented with tabs' );
}
module.exports = foo;

5
test/form/indent-true/_expected/es6.js

@ -0,0 +1,5 @@
function foo () {
console.log( 'indented with tabs' );
}
export default foo;

9
test/form/indent-true/_expected/iife.js

@ -0,0 +1,9 @@
var foo = (function () { 'use strict';
function foo () {
console.log( 'indented with tabs' );
}
return foo;
})();

13
test/form/indent-true/_expected/umd.js

@ -0,0 +1,13 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
global.foo = factory();
}(this, function () { 'use strict';
function foo () {
console.log( 'indented with tabs' );
}
return foo;
}));

3
test/form/indent-true/main.js

@ -0,0 +1,3 @@
export default function foo () {
console.log( 'indented with tabs' );
}

8
test/function/export-default-named-function/_config.js

@ -0,0 +1,8 @@
var assert = require( 'assert' );
module.exports = {
description: 'exports a default named function',
exports: function ( exports ) {
assert.equal( exports(), 42 );
}
};

3
test/function/export-default-named-function/main.js

@ -0,0 +1,3 @@
export default function foo () {
return 42;
};
Loading…
Cancel
Save