exaV / screeps-kotlin-types

Screep's Kotlin type definitions
MIT License
17 stars 18 forks source link

Cannot write tests involving anything defined as external #46

Closed thigg closed 5 years ago

thigg commented 5 years ago

This simple test fails:

 assertEquals(126,FIND_MY_STRUCTURES.value or FIND_CREEPS.value)

with ReferenceError: FIND_MY_STRUCTURES is not defined

My guess is, that is because the constants are defined as external.

I think that should either be documented as an issue or be fixed.

Maybe we can define a npm dep for test-runtime which fixes that?