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(
|
||||
testFindToken(`on: push
|
||||
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", () => {
|
||||
expect(
|
||||
testFindToken(`on: push
|
||||
|
||||
Reference in New Issue
Block a user