Skip to content

Commit 81fcffb

Browse files
Test for each case
1 parent d1c9446 commit 81fcffb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

kahuna/public/js/components/gr-cql-input/query-translation.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import { parseCqlStr } from "@guardian/cql";
55
describe("query-translation", () => {
66
const queryPairs = [
77
["a:b", "+a:b"],
8-
["a:\"b c\"", "+a:\"b c\""],
8+
['a:"b c"', '+a:"b c"'],
99
["a:b c d:e", "+a:b c +d:e"],
1010
[":b", "+:b"],
1111
["-a:b c -d:e f:", "-a:b c -d:e +f:"]
1212
];
1313

1414
describe("Round tripping queries", () => {
15-
it("parses a Grid query into CQL, and back again", () => {
16-
queryPairs.forEach(([originalGridQuery, expectedCqlQuery]) => {
15+
queryPairs.forEach(([originalGridQuery, expectedCqlQuery]) => {
16+
it(`parses the Grid query \`${originalGridQuery}\` into the CQL query \`${expectedCqlQuery}\`, and back again`, () => {
1717
const cqlQuery = gridQueryToCqlQuery(originalGridQuery);
1818
expect(cqlQuery).toBe(expectedCqlQuery);
1919

0 commit comments

Comments
 (0)