require({ baseUrl: './', paths: { a: 'a1' }, map: { '*': { 'c': 'another/c' }, 'a': { c: 'c1' }, 'a/sub/one': { 'c': 'c2', 'c/sub': 'another/c/sub' } } }, ['a', 'b', 'c', 'a/sub/one'], function(a, b, c, one) { doh.register( 'mapConfigStar', [ function mapConfigStar(t){ t.is('c1', a.c.name); t.is('c1/sub', a.csub.name); t.is('c2', one.c.name); t.is('another/c/sub', one.csub.name); t.is('another/c/dim', one.csub.dimName); t.is('another/c', b.c.name); t.is('another/minor', b.c.minorName); t.is('another/c/sub', b.csub.name); t.is('another/c', c.name); t.is('another/minor', c.minorName); } ] ); doh.run(); } );