Update test/browser/spec/ol/style/expressions.test.js

Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com>
This commit is contained in:
Seba Kerckhof
2021-07-28 09:17:10 +02:00
committed by GitHub
parent db57d9bf89
commit 25af938a83

View File

@@ -251,7 +251,7 @@ describe('ol.style.expressions', function () {
'(10.0 == a_attr4)'
);
expect(expressionToGlsl(context, ['==', 'red', ['get', 'attr4']])).to.eql(
'(0.0 == a_attr4)'
`(${stringToGlsl(context, 'red')} == a_attr4)`
);
expect(expressionToGlsl(context, ['!=', 10, ['get', 'attr4']])).to.eql(
'(10.0 != a_attr4)'