File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ class Fact {
2626 }
2727
2828 if ( ! this . id ) throw new Error ( 'factId required' )
29- if ( typeof this . value === 'undefined' && typeof this . calculationMethod === 'undefined' ) {
30- throw new Error ( 'facts must have a value or method' )
31- }
29+ // if (typeof this.value === 'undefined' && typeof this.calculationMethod === 'undefined') {
30+ // throw new Error('facts must have a value or method')
31+ // }
3232
3333 this . priority = parseInt ( options . priority || 1 , 10 )
3434 this . options = Object . assign ( { } , defaultOptions , options )
Original file line number Diff line number Diff line change @@ -29,10 +29,6 @@ describe('Fact', () => {
2929 it ( 'throws if no id provided' , ( ) => {
3030 expect ( subject ) . to . throw ( / f a c t I d r e q u i r e d / )
3131 } )
32-
33- it ( 'throws if no definition provided' , ( ) => {
34- expect ( subject . bind ( null , 'factId' ) ) . to . throw ( / f a c t s m u s t h a v e a v a l u e o r m e t h o d / )
35- } )
3632 } )
3733 } )
3834
You can’t perform that action at this time.
0 commit comments