1
0
Fork 0

Minor cleanup to trait naming test

test/Trait/NamedTest.js: Cleanup interface-related naming test.
master
Mike Gerwitz 2016-12-29 03:50:09 -05:00
parent e93f3a70f9
commit 35dacc00da
1 changed files with 6 additions and 8 deletions

View File

@ -142,19 +142,17 @@ require( 'common' ).testCase(
'Can implement interface using named trait staging object': 'Can implement interface using named trait staging object':
function() function()
{ {
var Sut = this.Sut,
var Sut = this.Sut, name = "Foo",
expected = {}, I = this.Interface( {} ),
name = "Foo", I2 = this.Interface( {} ),
I = this.Interface( {} ), T = null;
I2 = this.Interface( {} ),
T = null;
this.assertDoesNotThrow( function() this.assertDoesNotThrow( function()
{ {
// this does not create a trait, but it should be acceptable // this does not create a trait, but it should be acceptable
// just as Class( "Foo" ) is // just as Class( "Foo" ) is
T = Sut( "Foo" ) T = Sut( name )
.implement( I, I2 ) .implement( I, I2 )
.extend( {} ); .extend( {} );
} ); } );