* Replaces old Deno server with a Go implementation * Restructured the code base accordingly
14 lines
263 B
Go
14 lines
263 B
Go
package server
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestVersionParsing(t *testing.T) {
|
|
version, err := ParseVersionFromTypeScript(`export const publicVersion = "2.0.0"`)
|
|
assert.NoError(t, err)
|
|
assert.Equal(t, "2.0.0", version)
|
|
}
|