forked from scala-js/scala-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add methods to mock JS clock to Jasmine wrapper
- Loading branch information
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
jasmine-test-framework/src/main/scala/org/scalajs/jasmine/JasmineEnv.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.scalajs.jasmine | ||
|
||
import scala.scalajs.js | ||
|
||
trait JasmineEnv extends js.Object { | ||
def Clock: JasmineEnv.Clock | ||
} | ||
|
||
object JasmineEnv { | ||
trait Clock extends js.Object { | ||
def tick(time: js.Number): js.Undefined | ||
def useMock(): js.Undefined | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters