Skip to content

Commit 21b6830

Browse files
committed
Added simple test for spaghetti-typescript plugin
1 parent f680a86 commit 21b6830

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.prezi.spaghetti.typescript.gradle
2+
3+
import org.gradle.testfixtures.ProjectBuilder
4+
import spock.lang.Specification
5+
6+
/**
7+
* Created by lptr on 29/04/14.
8+
*/
9+
class SpaghettiTypeScriptPluginTest extends Specification {
10+
def "empty project creates all necessary tasks"() {
11+
def project = ProjectBuilder.builder().build()
12+
project.apply plugin: "spaghetti-typescript"
13+
14+
expect:
15+
project.tasks*.name.sort() == ["assemble", "bundleModule", "clean", "compile", "generateHeaders", "main", "mainModule", "obfuscateModule", "spaghetti-platforms"]
16+
}
17+
}

0 commit comments

Comments
 (0)