Welcome to mirror list, hosted at ThFree Co, Russian Federation.

inner_text.js « dom_shims « __helpers__ « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a48f0fee689bd50cc00e8b53172f857a4ae98598 (plain)
1
2
3
4
5
6
7
8
9
10
11
// workaround for JSDOM not supporting innerText
// see https://github.com/jsdom/jsdom/issues/1245
Object.defineProperty(global.Element.prototype, 'innerText', {
  get() {
    return this.textContent;
  },
  set(value) {
    this.textContent = value;
  },
  configurable: true, // make it so that it doesn't blow chunks on re-running tests with things like --watch
});