Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
update application.rb
Commit Description:
update application.rb
var path = require ( 'path' );
var test = require ( 'tape' );
var resolve = require ( '../' );
test ( 'precedence' , function ( t ) {
t . plan ( 3 );
var dir = path . join ( __dirname , 'precedence/aaa' );
resolve ( './' , { basedir : dir }, function ( err , res , pkg ) {
t . ifError ( err );
t . equal ( res , path . join ( dir , 'index.js' ));
t . equal ( pkg . name , 'resolve' );
});
});
test ( './ should not load ${ dir } .js' , function ( t ) { // eslint-disable-line no-template-curly-in-string
t . plan ( 1 );
var dir = path . join ( __dirname , 'precedence/bbb' );
resolve ( './' , { basedir : dir }, function ( err , res , pkg ) {
t . ok ( err );
});
});
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings