Skip to content

Commit

Permalink
Added String and Boolean to Default Type Test
Browse files Browse the repository at this point in the history
Fixed Long to actually check Long
Removed unused import in Macros
  • Loading branch information
Hayena committed Dec 21, 2018
1 parent 4332f1a commit dce01e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion macros/src/main/scala/Macros.scala
Expand Up @@ -54,7 +54,7 @@ private class Macros(val c: blackbox.Context) {

q"""{
import nl.codestar.scalatsi.TypescriptType._
import nl.codestar.scalatsi.{ TSType, TSNamedType, TSIType }
import nl.codestar.scalatsi.{ TSNamedType, TSIType }
import scala.collection.immutable.ListMap
TSIType(TSInterface("I" + ${symbol.name.toString}, ListMap(..$members)))
}"""
Expand Down
4 changes: 3 additions & 1 deletion src/test/scala/nl/codestar/scalatsi/DefaultTSTypeTests.scala
Expand Up @@ -8,8 +8,10 @@ import org.scalatest.{Matchers, WordSpec}
class DefaultTSTypeTests extends WordSpec with Matchers with DefaultTSTypes {

"Default TS Types should be defined" forWord {
"String" in { "implicitly[TSType[String]]" should compile }
"Boolean" in { "implicitly[TSType[Boolean]]" should compile}
"Int" in { "implicitly[TSType[Int]]" should compile }
"Long" in { "implicitly[TSType[Int]]" should compile }
"Long" in { "implicitly[TSType[Long]]" should compile }
"Double" in { "implicitly[TSType[Double]]" should compile }
"scala.math.BigDecimal" in { "implicitly[TSType[scala.math.BigDecimal]]" should compile }
"java.math.BigDecimal" in { "implicitly[TSType[java.math.BigDecimal]]" should compile }
Expand Down

0 comments on commit dce01e9

Please sign in to comment.