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:
@@ -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")
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user