| 1 |
package tests.integration; |
| 2 |
|
| 3 |
import haxe.*; |
| 4 |
import haxe.io.*; |
| 5 |
import haxelib.*; |
| 6 |
import haxelib.client.*; |
| 7 |
import IntegrationTests.*; |
| 8 |
using IntegrationTests; |
| 9 |
|
| 10 |
class TestSetup extends IntegrationTests { |
| 11 |
function testCleanEnv():Void { |
| 12 |
// remove .haxelib to simulate an enviroment that haven't `haxelib setup` yet |
| 13 |
var config = Main.getConfigFile(); |
| 14 |
sys.FileSystem.deleteFile(config); |
| 15 |
|
| 16 |
var installResult = haxelib(["setup", originalRepo]).result(); |
| 17 |
assertEquals(0, installResult.code); |
| 18 |
} |
| 19 |
} |