Skip to content

Commit

Permalink
Rename from QL to KraphQL
Browse files Browse the repository at this point in the history
  • Loading branch information
VerachadW committed Sep 27, 2016
1 parent 30f9969 commit eb5f999
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Kraph [![Build Status](https://travis-ci.org/taskworld/kraph.svg?branch=master)](https://travis-ci.org/taskworld/kraph) [ ![Download](https://api.bintray.com/packages/tw/maven/kraph/images/download.svg) ](https://bintray.com/tw/maven/kraph/_latestVersion)
# KraphQL [![Build Status](https://travis-ci.org/taskworld/kraph.svg?branch=master)](https://travis-ci.org/taskworld/kraph) [ ![Download](https://api.bintray.com/packages/tw/maven/kraph/images/download.svg) ](https://bintray.com/tw/maven/kraph/_latestVersion)
GraphQL query builder written in Kotlin
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package com.taskworld.kraph
* Created by VerachadW on 9/19/2016 AD.
*/

class QL(f: QL.() -> Unit) {
class KraphQL(f: KraphQL.() -> Unit) {
internal lateinit var document: DocumentNode

init {
Expand Down
6 changes: 3 additions & 3 deletions src/test/kotlin/com/taskworld/kraph/test/LangSpek.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.natpryce.hamkrest.hasElement
import com.natpryce.hamkrest.hasSize
import com.natpryce.hamkrest.isA
import com.taskworld.kraph.OperationType
import com.taskworld.kraph.QL
import com.taskworld.kraph.KraphQL
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.given
Expand All @@ -19,9 +19,9 @@ import org.junit.runner.RunWith
*/
@RunWith(JUnitPlatform::class)
class LangSpek : Spek({
describe("Kraph Query DSL Builder") {
describe("KraphQL Query DSL Builder") {
given("smaple query") {
val query = QL {
val query = KraphQL {
query("getAllNotes") {
fieldObject("notes") {
field("id")
Expand Down
8 changes: 4 additions & 4 deletions src/test/kotlin/com/taskworld/kraph/test/NodePrintSpek.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ class NodePrintSpek : Spek({
assertThat(node.print(), equalTo("(id: 1)"))
}
}
given("\"id\" and \"title\" as arguments and value as 1 and \"Kraph\"") {
val node = ArgumentsNode(mapOf("id" to 1, "title" to "Kraph"))
it("should print (id: 1, title: \"Kraph\")") {
assertThat(node.print(), equalTo("(id: 1, title: \"Kraph\")"))
given("\"id\" and \"title\" as arguments and value as 1 and \"KraphQL\"") {
val node = ArgumentsNode(mapOf("id" to 1, "title" to "KraphQL"))
it("should print (id: 1, title: \"KraphQL\")") {
assertThat(node.print(), equalTo("(id: 1, title: \"KraphQL\")"))
}
}
}
Expand Down

0 comments on commit eb5f999

Please sign in to comment.