test: split compiled classes string into array for technically correct assertion

This commit is contained in:
Xymorot 2020-06-07 02:38:14 +02:00
parent d85fec9bdb
commit 642ae830a6
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ describe('Frontend Utils', function () {
expect(compiled).to.be.a('string', 'class util does not return a string');
expectedClasses.forEach((className) => {
expect(compiled).to.contain(className, 'class util does not add all classes');
expect(compiled.split(' ')).to.include(className, 'class util does not add all classes');
});
})
);