kwonoj/rx-sandbox

Tiny tiny typo in tokenParseReducer.ts

Opened this issue · 0 comments

Love the marbles, but there is this tiny spelling/typo error in tokenParseReducer.ts line 89, that I get to see quite often (because I suck at writing tests):

const validateTimeFrameToken = (acc: TokenParseAccumulator) => {   
  if (acc.expandingTokenCount > 0 || acc.simultaneousGrouped) {  
    throw new Error('Incorret timeframe specified');  
  }  
};

Should be:

const validateTimeFrameToken = (acc: TokenParseAccumulator) => {
  if (acc.expandingTokenCount > 0 || acc.simultaneousGrouped) {
    throw new Error('Incorrect timeframe specified');
  }
};