qlik-oss/picasso.js

View on GitHub
packages/picasso.js/src/web/text-manipulation/__tests__/string-tokanizer.spec.js

Summary

Maintainability
B
6 hrs
Test Coverage

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

it('should trigger mandatory break opportunity if mandatory break identifier resolves to true', () => {
tokens = stringTokenizer({
string: 'Hej',
mandatoryBreakIdentifiers: [(chunk) => chunk === 'e', () => false],
});
packages/picasso.js/src/web/text-manipulation/__tests__/string-tokanizer.spec.js on lines 90..97

Similar blocks of code found in 2 locations. Consider refactoring.
Open

it('should trigger noBreak opportunity if any noBreak identifier resolves to true', () => {
tokens = stringTokenizer({
string: 'Hej',
noBreakAllowedIdentifiers: [(chunk) => chunk === 'e', () => false],
});
packages/picasso.js/src/web/text-manipulation/__tests__/string-tokanizer.spec.js on lines 81..88

There are no issues that match your filters.

Category
Status