@@ -154,48 +154,48 @@ module.exports = function shared(createSpyOrStub) {
154
154
155
155
it ( "throws on data property descriptors that are not writable or configurable" , function ( ) {
156
156
var myObj = { } ;
157
- Object . defineProperty ( myObj , ' ignoreme' , {
157
+ Object . defineProperty ( myObj , " ignoreme" , {
158
158
writable : false ,
159
- configurable : false
159
+ configurable : false ,
160
160
} ) ;
161
161
162
162
assert . exception ( function ( ) {
163
- createSpyOrStub ( myObj , "ignoreme" ) ;
164
- } ,
165
- new TypeError ( ' Descriptor for property ignoreme is non-configurable and non-writable' )
166
- ) ;
163
+ createSpyOrStub ( myObj , "ignoreme" ) ;
164
+ } , new TypeError (
165
+ " Descriptor for property ignoreme is non-configurable and non-writable"
166
+ ) ) ;
167
167
} ) ;
168
168
169
169
it ( "throws on accessor property descriptors that are not configurable" , function ( ) {
170
170
var myObj = { } ;
171
- Object . defineProperty ( myObj , ' ignoreme' , {
172
- get : function ( key ) {
171
+ Object . defineProperty ( myObj , " ignoreme" , {
172
+ get : function ( key ) {
173
173
return this [ key ] ;
174
174
} ,
175
- set : function ( key , val ) {
175
+ set : function ( key , val ) {
176
176
this [ key ] = val ;
177
177
} ,
178
- configurable : false
178
+ configurable : false ,
179
179
} ) ;
180
180
181
181
assert . exception ( function ( ) {
182
- createSpyOrStub ( myObj , "ignoreme" ) ;
183
- } ,
184
- new TypeError ( ' Descriptor for accessor property ignoreme is non-configurable' )
185
- ) ;
182
+ createSpyOrStub ( myObj , "ignoreme" ) ;
183
+ } , new TypeError (
184
+ " Descriptor for accessor property ignoreme is non-configurable"
185
+ ) ) ;
186
186
} ) ;
187
187
188
188
it ( "throws on data descriptors that are not stubbable" , function ( ) {
189
189
var myObj = { } ;
190
- Object . defineProperty ( myObj , ' ignoreme' , {
190
+ Object . defineProperty ( myObj , " ignoreme" , {
191
191
writable : false ,
192
- configurable : false
192
+ configurable : false ,
193
193
} ) ;
194
194
195
195
assert . exception ( function ( ) {
196
- createSpyOrStub ( myObj , "ignoreme" ) ;
197
- } ,
198
- new TypeError ( ' Descriptor for data property ignoreme is non-writable' )
199
- ) ;
196
+ createSpyOrStub ( myObj , "ignoreme" ) ;
197
+ } , new TypeError (
198
+ " Descriptor for data property ignoreme is non-writable"
199
+ ) ) ;
200
200
} ) ;
201
201
} ;
0 commit comments