@@ -39,20 +39,29 @@ describe('A point of interest', function() {
39
39
expect ( coordinateSpy ) . to . have . been . calledWith ( poiDef . get ( 'coord' ) )
40
40
expect ( poi . chatLink ) . to . equal ( '[chatLink]' )
41
41
expect ( poi . iconUrl ) . to . equal ( 'waypointUrl' )
42
+ expect ( poi . _iconScale ) . to . equal ( 0.5 )
42
43
} )
43
44
44
45
it ( 'should get type poi if given type landmark' , function ( ) {
45
- let landmarkDef = poiDef . set ( 'type' , 'landmark' )
46
- let poi = new PointOfInterest ( landmarkDef , iconUrls , coordinateSpy )
46
+ const landmarkDef = poiDef . set ( 'type' , 'landmark' )
47
+ const poi = new PointOfInterest ( landmarkDef , iconUrls , coordinateSpy )
47
48
expect ( poi . type ) . to . equal ( 'poi' )
48
49
expect ( poi . iconUrl ) . to . equal ( 'poiUrl' )
50
+ expect ( poi . _iconScale ) . to . equal ( 0.75 )
49
51
} )
50
52
51
53
it ( 'should get type dungeon if given type unlock' , function ( ) {
52
- let unlockDef = poiDef . set ( 'type' , 'unlock' )
53
- let dungeon = new PointOfInterest ( unlockDef , iconUrls , coordinateSpy )
54
+ const unlockDef = poiDef . set ( 'type' , 'unlock' )
55
+ const dungeon = new PointOfInterest ( unlockDef , iconUrls , coordinateSpy )
54
56
expect ( dungeon . type ) . to . equal ( 'dungeon' )
55
57
expect ( dungeon . iconUrl ) . to . equal ( 'dungeonUrl' )
58
+ expect ( dungeon . _iconScale ) . to . equal ( 1 )
59
+ } )
60
+ } )
61
+
62
+ describe ( '#olFeature' , function ( ) {
63
+ it ( 'should return an ol.Feature' , function ( ) {
64
+ expect ( poi . olFeature ) . to . be . an . instanceOf ( ol . Feature )
56
65
} )
57
66
} )
58
67
} )
0 commit comments