summaryrefslogtreecommitdiff
path: root/examples/scala-js/jasmine-test-framework/src/main/scala/org/scalajs/jasmine/JasmineExpectation.scala
blob: 9aad02e55afd1bd26915014e832e3b5be98ed3ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package org.scalajs.jasmine

import scala.scalajs.js

trait JasmineExpectation extends js.Object {
  def toBe(exp: js.Any): Unit = js.native
  def toEqual(exp: js.Any): Unit = js.native
  def toMatch(exp: js.RegExp): Unit = js.native
  def toMatch(exp: String): Unit = js.native
  def toBeDefined(): Unit = js.native
  def toBeUndefined(): Unit = js.native
  def toBeNull(): Unit = js.native
  def toBeTruthy(): Unit = js.native
  def toBeFalsy(): Unit = js.native
  def toContain(exp: js.Any): Unit = js.native
  def toBeGreaterThan(exp: Double): Unit = js.native
  def toBeLessThan(exp: Double): Unit = js.native
  def toBeCloseTo(exp: Double, precision: Int = 2): Unit = js.native
  def toThrow(): Unit = js.native
  val not: JasmineExpectation = js.native
}