Minor cleanup to trait naming test
test/Trait/NamedTest.js: Cleanup interface-related naming test.master
parent
e93f3a70f9
commit
35dacc00da
|
@ -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( {} );
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in New Issue