You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.
This is an edge case, but it managed to trip me up. Failing test:
it('wordWrap with colored text should not bleed',function(){vartable=newTable({style:{border:[],head:[]},wordWrap:true,colWidths:[8]});table.push([colors.blue('Hello how are you?\n')+'\nthis should be white']);varexpected=['┌────────┐','│ '+colors.blue('Hello')+' │','│ '+colors.blue('how')+' │','│ '+colors.blue('are')+' │','│ '+colors.blue('you?')+' │','│ '+'this'+' │','│ '+'should'+' │','│ '+'be'+' │','│ '+'white'+' │','└────────┘'];expect(table.toString()).to.equal(expected.join('\n'));});
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is an edge case, but it managed to trip me up. Failing test:
The text was updated successfully, but these errors were encountered: