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':
function()
{
var Sut = this.Sut,
expected = {},
name = "Foo",
I = this.Interface( {} ),
I2 = this.Interface( {} ),
T = null;
var Sut = this.Sut,
name = "Foo",
I = this.Interface( {} ),
I2 = this.Interface( {} ),
T = null;
this.assertDoesNotThrow( function()
{
// this does not create a trait, but it should be acceptable
// just as Class( "Foo" ) is
T = Sut( "Foo" )
T = Sut( name )
.implement( I, I2 )
.extend( {} );
} );