Add empty string mapping test case
This commit is contained in:
@@ -158,7 +158,7 @@ jobs:
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("pos after colon in empty mapping", () => {
|
it("pos after colon in empty null mapping ", () => {
|
||||||
expect(
|
expect(
|
||||||
testFindToken(`on: push
|
testFindToken(`on: push
|
||||||
jobs:
|
jobs:
|
||||||
@@ -171,6 +171,19 @@ jobs:
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("pos after colon in empty string mapping", () => {
|
||||||
|
expect(
|
||||||
|
testFindToken(`on: push
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
container:|`)
|
||||||
|
).toEqual({
|
||||||
|
parent: ["job-factory", TokenType.Mapping],
|
||||||
|
key: [null, TokenType.String, "container"],
|
||||||
|
token: ["container", TokenType.String, ""]
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
it("pos after colon in mapping", () => {
|
it("pos after colon in mapping", () => {
|
||||||
expect(
|
expect(
|
||||||
testFindToken(`on: push
|
testFindToken(`on: push
|
||||||
|
|||||||
Reference in New Issue
Block a user