File tree Expand file tree Collapse file tree 9 files changed +26
-20
lines changed
reactify/src/test/scala/test Expand file tree Collapse file tree 9 files changed +26
-20
lines changed Original file line number Diff line number Diff line change 1
1
# reactify
2
2
3
- [ ![ Build Status] ( https://travis-ci.org/outr/reactify.svg?branch=master )] ( https://travis-ci.org/outr/reactify )
4
- [ ![ Codacy Badge] ( https://api.codacy.com/project/badge/Grade/759324d19db5496dbd9867b4a113c806 )] ( https://www.codacy.com/app/matthicks/reactify?utm_source=github.com& ; utm_medium=referral& ; utm_content=outr/reactify& ; utm_campaign=Badge_Grade )
5
- [ ![ Codacy Badge] ( https://api.codacy.com/project/badge/Coverage/759324d19db5496dbd9867b4a113c806 )] ( https://www.codacy.com/app/matthicks/reactify?utm_source=github.com&utm_medium=referral&utm_content=outr/reactify&utm_campaign=Badge_Coverage )
3
+ [ ![ CI] ( https://github.com/outr/reactify/actions/workflows/ci.yml/badge.svg )] ( https://github.com/outr/reactify/actions/workflows/ci.yml )
6
4
[ ![ Gitter] ( https://badges.gitter.im/Join%20Chat.svg )] ( https://gitter.im/outr/reactify )
7
5
[ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/com.outr/reactify_2.12/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.outr/reactify_2.12 )
8
6
[ ![ Latest version] ( https://index.scala-lang.org/outr/reactify/reactify/latest.svg )] ( https://index.scala-lang.org/outr/reactify )
Original file line number Diff line number Diff line change 1
1
package test
2
2
3
- import testy ._
3
+ import org .scalatest .matchers .should .Matchers
4
+ import org .scalatest .wordspec .AnyWordSpec
4
5
import reactify ._
5
6
import reactify .bind .Binding
6
7
7
8
import scala .language .implicitConversions
8
9
9
- class BindingSpec extends Spec {
10
+ class BindingSpec extends AnyWordSpec with Matchers {
10
11
" Bindings" when {
11
12
" dealing with a simple binding" should {
12
13
val a = Var [String ](" a" )
Original file line number Diff line number Diff line change 1
1
package test
2
2
3
- import testy ._
3
+ import org .scalatest .matchers .should .Matchers
4
+ import org .scalatest .wordspec .AnyWordSpec
4
5
import reactify .Channel
5
6
6
7
import scala .language .implicitConversions
7
8
8
- class ChannelSpec extends Spec {
9
+ class ChannelSpec extends AnyWordSpec with Matchers {
9
10
" Channels" should {
10
11
" notify when changed" in {
11
12
var changes = 0
Original file line number Diff line number Diff line change 1
1
package test
2
2
3
- import testy ._
3
+ import org .scalatest .matchers .should .Matchers
4
+ import org .scalatest .wordspec .AnyWordSpec
4
5
import reactify ._
5
6
6
7
import scala .collection .mutable .ListBuffer
7
8
import scala .language .implicitConversions
8
9
9
- class DepSpec extends Spec {
10
+ class DepSpec extends AnyWordSpec with Matchers {
10
11
" Deps" should {
11
12
val width : Var [Double ] = Var (0.0 )
12
13
Original file line number Diff line number Diff line change 1
1
package test
2
2
3
- import testy ._
3
+ import org .scalatest .matchers .should .Matchers
4
+ import org .scalatest .wordspec .AnyWordSpec
4
5
import reactify ._
5
6
6
7
import scala .language .implicitConversions
7
8
8
- class DepSpecialSpec extends Spec {
9
+ class DepSpecialSpec extends AnyWordSpec with Matchers {
9
10
" Deps Special Use-Cases" when {
10
11
" combining Ints" should {
11
12
" do simple addition" in {
Original file line number Diff line number Diff line change 1
1
package test
2
2
3
- import testy ._
3
+ import org .scalatest .matchers .should .Matchers
4
+ import org .scalatest .wordspec .AnyWordSpec
4
5
import reactify .Var
5
6
import reactify .transaction .Transaction
7
+
6
8
import scala .language .implicitConversions
7
9
8
- class TransactionSpec extends Spec {
10
+ class TransactionSpec extends AnyWordSpec with Matchers {
9
11
" Transactions" should {
10
12
" support undoing" in {
11
13
val v = Var (" One" )
Original file line number Diff line number Diff line change 1
1
package test
2
2
3
- import testy ._
3
+ import org .scalatest .matchers .should .Matchers
4
+ import org .scalatest .wordspec .AnyWordSpec
4
5
import reactify .Trigger
5
6
6
7
import scala .language .implicitConversions
7
8
8
- class TriggerSpec extends Spec {
9
+ class TriggerSpec extends AnyWordSpec with Matchers {
9
10
" Triggers" should {
10
11
" handle simple invocations" in {
11
12
val t = Trigger ()
Original file line number Diff line number Diff line change 1
1
package test
2
2
3
- import testy ._
3
+ import org .scalatest .matchers .should .Matchers
4
+ import org .scalatest .wordspec .AnyWordSpec
4
5
import reactify ._
5
6
6
7
import scala .language .implicitConversions
7
8
8
- class ValSpec extends Spec {
9
+ class ValSpec extends AnyWordSpec with Matchers {
9
10
" Vals" should {
10
11
" contain the proper value" in {
11
12
val v = Val (5 )
Original file line number Diff line number Diff line change 1
1
package test
2
2
3
- import testy ._
3
+ import org .scalatest .matchers .should .Matchers
4
+ import org .scalatest .wordspec .AnyWordSpec
4
5
import reactify ._
5
6
import reactify .group .VarGroup
6
7
7
8
import scala .collection .mutable .ListBuffer
8
-
9
9
import scala .language .implicitConversions
10
10
11
- class VarSpec extends Spec {
11
+ class VarSpec extends AnyWordSpec with Matchers {
12
12
lazy val lazyDouble : Var [Double ] = Var (0.0 )
13
13
14
14
" Vars" should {
You can’t perform that action at this time.
0 commit comments