google/closure-compiler

Jasmine Externs are out of Date

Open

#3.045 geöffnet am 6. Aug. 2018

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Java (1.197 Forks)batch import
Externshelp wanted

Repository-Metriken

Stars
 (7.176 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 3T 4h) (1 gemergte PR in 30 T)

Beschreibung

I've found that many Closure externs are out of date for Jasmine. Specifically, I see:

  • Many custom matcher types are missing, including:
    • CustomMatcherFactories
    • MatchersUtil
    • CustomEqualityTester
    • CustomMatcher
  • Jasmine's pretty print utility is missing (jasmine.pp())
  • Most matcher functions (toBe(), toEqual(), etc.) accept an optional string to use as an error message if the expectation fails. This is also missing.
  • Likely others...

Without these types, custom matchers are basically impossible. Would be great to see these types updated.

See: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jasmine/index.d.ts

Contributor Guide