File tree Expand file tree Collapse file tree
packages/tide-predictor/test/constituents Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,8 +132,7 @@ describe("Base constituent definitions", () => {
132132
133133 it ( "has correct properties for 2MS6 (quarter-diurnal M2-S2 interaction)" , ( ) => {
134134 expect ( constituents [ "2MS6" ] ) . toBeDefined ( ) ;
135- const expectedSpeed = 2 * constituents . M2 . speed ( testAstro ) + constituents . S2 . speed ( testAstro ) ;
136- expect ( constituents [ "2MS6" ] . speed ( testAstro ) ) . toBeCloseTo ( expectedSpeed , 2 ) ;
135+ expect ( constituents [ "2MS6" ] . speed ( testAstro ) ) . toBeCloseTo ( 87.9682085 , 7 ) ;
137136 } ) ;
138137
139138 it ( "has correct properties for 2MK5 (quinte-diurnal M2-K1 interaction)" , ( ) => {
@@ -144,7 +143,6 @@ describe("Base constituent definitions", () => {
144143
145144 it ( "has correct properties for 2MO5 (quinte-diurnal M2-O1 interaction)" , ( ) => {
146145 expect ( constituents [ "2MO5" ] ) . toBeDefined ( ) ;
147- const expectedSpeed = 2 * constituents . M2 . speed ( testAstro ) + constituents . O1 . speed ( testAstro ) ;
148- expect ( constituents [ "2MO5" ] . speed ( testAstro ) ) . toBeCloseTo ( expectedSpeed , 2 ) ;
146+ expect ( constituents [ "2MO5" ] . speed ( testAstro ) ) . toBeCloseTo ( 71.911244 , 6 ) ;
149147 } ) ;
150148} ) ;
You can’t perform that action at this time.
0 commit comments