Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

dwg's latest activity

Sunday, April 19 2009
86 Descriptions containing the letters 'end' get mangled was updated in JSpec
  • dwg
    dwg commented at 12:21 PM

    Update: the line should be

    replace(/(?:\s|^)end(?=\s|$)/gm, '});').

    Additionally, the line

    replace(/^(?: *)(before_each|after_each|before|after)(?= |\n|$)/gm, '...

Saturday, April 18 2009
86 Descriptions containing the letters 'end' get mangled was created in JSpec
  • dwg
    dwg created the ticket at 10:23 PM

    I have a spec described as

    it 'should extend ...'

    Which gets changed to

    'should ext}); ...'

    By changing the following line

    replace(/end(?= |\n|$)/gm, '});').

    to

    ...