@@ -28,21 +28,21 @@ class StubTimer {
2828describe ( "AccessTokenEvents" , function ( ) {
2929
3030 let subject ;
31- let expiringTimer ;
32- let expiredTimer ;
31+ let accessTokenExpiringTimer ;
32+ let accessTokenExpiredTimer ;
3333
3434 beforeEach ( function ( ) {
35- expiringTimer = new StubTimer ( ) ;
36- expiredTimer = new StubTimer ( ) ;
35+ accessTokenExpiringTimer = new StubTimer ( ) ;
36+ accessTokenExpiredTimer = new StubTimer ( ) ;
3737 subject = new AccessTokenEvents ( {
38- expiredTimer , expiringTimer
38+ accessTokenExpiringTimer , accessTokenExpiredTimer
3939 } ) ;
4040 } ) ;
4141
4242 describe ( "constructor" , function ( ) {
4343
4444 it ( "should use default expiringNotificationTime" , function ( ) {
45- subject . _expiringNotificationTime . should . equal ( 60 ) ;
45+ subject . _accessTokenExpiringNotificationTime . should . equal ( 60 ) ;
4646 } ) ;
4747
4848 } ) ;
@@ -52,8 +52,8 @@ describe("AccessTokenEvents", function () {
5252 it ( "should cancel existing timers" , function ( ) {
5353 subject . init ( { } ) ;
5454
55- expiringTimer . cancelWasCalled . should . be . true ;
56- expiredTimer . cancelWasCalled . should . be . true ;
55+ accessTokenExpiringTimer . cancelWasCalled . should . be . true ;
56+ accessTokenExpiredTimer . cancelWasCalled . should . be . true ;
5757 } ) ;
5858
5959 it ( "should initialize timers" , function ( ) {
@@ -62,8 +62,8 @@ describe("AccessTokenEvents", function () {
6262 expires_in : 70
6363 } ) ;
6464
65- expiringTimer . duration . should . equal ( 10 ) ;
66- expiredTimer . duration . should . equal ( 71 ) ;
65+ accessTokenExpiringTimer . duration . should . equal ( 10 ) ;
66+ accessTokenExpiredTimer . duration . should . equal ( 71 ) ;
6767 } ) ;
6868
6969 it ( "should immediately schedule expiring timer if expiration is soon" , function ( ) {
@@ -72,7 +72,7 @@ describe("AccessTokenEvents", function () {
7272 expires_in : 10
7373 } ) ;
7474
75- expiringTimer . duration . should . equal ( 1 ) ;
75+ accessTokenExpiringTimer . duration . should . equal ( 1 ) ;
7676 } ) ;
7777
7878 it ( "should not initialize expiring timer if already expired" , function ( ) {
@@ -81,7 +81,7 @@ describe("AccessTokenEvents", function () {
8181 expires_in : 0
8282 } ) ;
8383
84- assert . isUndefined ( expiringTimer . duration ) ;
84+ assert . isUndefined ( accessTokenExpiringTimer . duration ) ;
8585 } ) ;
8686
8787 it ( "should initialize expired timer if already expired" , function ( ) {
@@ -90,16 +90,16 @@ describe("AccessTokenEvents", function () {
9090 expires_in : 0
9191 } ) ;
9292
93- expiredTimer . duration . should . equal ( 1 ) ;
93+ accessTokenExpiredTimer . duration . should . equal ( 1 ) ;
9494 } ) ;
9595
9696 it ( "should not initialize timers if no access token" , function ( ) {
9797 subject . init ( {
9898 expires_in : 70
9999 } ) ;
100100
101- assert . isUndefined ( expiringTimer . duration ) ;
102- assert . isUndefined ( expiredTimer . duration ) ;
101+ assert . isUndefined ( accessTokenExpiringTimer . duration ) ;
102+ assert . isUndefined ( accessTokenExpiredTimer . duration ) ;
103103 } ) ;
104104
105105 } ) ;
@@ -110,8 +110,8 @@ describe("AccessTokenEvents", function () {
110110
111111 subject . cancel ( ) ;
112112
113- expiringTimer . cancelWasCalled . should . be . true ;
114- expiredTimer . cancelWasCalled . should . be . true ;
113+ accessTokenExpiringTimer . cancelWasCalled . should . be . true ;
114+ accessTokenExpiredTimer . cancelWasCalled . should . be . true ;
115115 } ) ;
116116
117117 } ) ;
0 commit comments