steelbrain / intentions

Base package for showing intentions in Atom
MIT License
53 stars 11 forks source link

The tests are failing in new Atom #76

Closed aminya closed 3 years ago

aminya commented 4 years ago

I created #75 which bumps the dependencies, but the tests fail in the new Atom versions. The tests should be fixed

ProvidersHighlight
  trigger
    it works properly
      Expected promise to be resolved, but it was rejected with: Invalid Point: (NaN, 0) {  }
    it ignores previous result from executed twice instantly
      Expected promise to be resolved, but it was rejected with: Invalid Point: (NaN, 0) {  }
      Expected promise to be resolved, but it was rejected with: Invalid Point: (NaN, 0) {  }
    it does not enable it if providers return no results, including non-array ones
      Expected promise to be resolved, but it was rejected with: Invalid Point: (NaN, 0) {  }
    it emits an error if provider throws an error
      Expected 'Invalid Point: (NaN, 0)' to be 'test from provider'.
        Error: Expected 'Invalid Point: (NaN, 0)' to be 'test from provider'.
        at file:///C:/Users/aminy/Documents/GitHub/JavaScript/@atom-ide-community/intentions/spec/providers-highlight-spec.js:243:31
    it triggers providers based on scope
      Expected promise to be resolved, but it was rejected with: Invalid Point: (NaN, 0) {  }
  it automatically updates length of decoration everytime coordinates update
    Expected promise to be resolved, but it was rejected with: Invalid Point: (NaN, 0) {  }

Finished in 1.347 seconds
51 tests, 197 assertions, 7 failures, 0 skipped