Browse Source

update tests

contingency-plan
Rich Harris 10 years ago
parent
commit
cae28a761a
  1. 4
      test/function/iife-comments/main.js
  2. 4
      test/function/shadowed-external-export/_config.js
  3. 7
      test/function/shadowed-external-export/main.js

4
test/function/iife-comments/main.js

@ -1,11 +1,11 @@
(function () {
console.log( '1' ) // not an ID. should fix!
alert( '1' ) // line comment after statement
/*
BLOCK COMMENT
*/
console.log( '2' );
alert( '2' );
// standalone comment
})();

4
test/function/shadowed-external-export/_config.js

@ -0,0 +1,4 @@
module.exports = {
description: 'external modules are not shadowed',
skip: true
};

7
test/function/shadowed-external-export/main.js

@ -0,0 +1,7 @@
import { relative } from 'path';
function getRelativePath ( path, path2 ) {
return relative( path, path2 );
}
assert.equal( getRelativePath( 'foo/bar/baz', 'foo/baz/bar' ), '../../baz/bar' );
Loading…
Cancel
Save