-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi,
The following test falls when 'gtm' provider is used for running integration tests
https://github.com/robtweed/ewd-document-store/blob/master/spec/integration/ewd-document-store.spec.js#L295
It seems that works fine for InterSystem Caché (have no chance to run it without cache.node) but fails when Gtm used.
The problem is here:
(1) https://github.com/robtweed/ewd-document-store/blob/master/lib/proto/forEach.js#L83
(2) https://github.com/robtweed/ewd-document-store/blob/master/lib/proto/forEach.js#L87
For Gtm (2) returns the following result
node before = '{"global":"temp","subscripts":["foo","Davisþ"]}'
end / result = undefined
However, if I comment out (1), (2) returns the following:
node before = '{"global":"temp","subscripts":["foo","Davis"]}'
end/result = 'Douglas'
and seems works.
Also, please note that FIELD_MARK also used here
https://github.com/robtweed/ewd-document-store/blob/master/lib/proto/forEach.js#L75
@robtweed Do you have any ideas?