1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-12-03 22:24:14 +02:00

Added support of Element.nextElementSibling and Element.previousEleme… (#569)

* Added support of Element.nextElementSibling and Element.previousElementSibling

* Fixed linting issues

* Removed reedundant logger use
This commit is contained in:
Tim Voronov
2020-11-13 21:48:00 -05:00
committed by GitHub
parent 8a40d7b46f
commit 01088247e2
12 changed files with 175 additions and 7 deletions

View File

@@ -215,6 +215,26 @@ func TestMember(t *testing.T) {
So(string(out), ShouldEqual, `"Bob"`)
})
Convey("Computed property with quotes", func() {
c := compiler.New()
p := c.MustCompile(`
LET obj = {
attributes: {
'data-index': 1
}
}
RETURN obj.attributes['data-index']
`)
out, err := p.Run(context.Background())
So(err, ShouldBeNil)
So(string(out), ShouldEqual, "1")
})
})
}