Skip to content

Commit

Permalink
Fixed failed tests and upgraded brighterscript
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdp committed Feb 10, 2024
1 parent e70273e commit ffdc3ca
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 149 deletions.
2 changes: 1 addition & 1 deletion bsc-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@types/node": "^14.18.41",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"brighterscript": "^0.65.15",
"brighterscript": "^0.65.22",
"chai": "^4.2.0",
"chai-subset": "^1.6.0",
"coveralls": "^3.0.0",
Expand Down
6 changes: 4 additions & 2 deletions bsc-plugin/src/plugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ describe('RooibosPlugin', () => {
sub main()
Rooibos_init("RooibosScene")
print "hello"
end sub'//# sourceMappingURL=./test.spec.bs.map
end sub
'//# sourceMappingURL=./test.spec.brs.map
`, [
// print "h|ello" => print |"hello"
{ dest: [2, 12], src: [2, 26] }
Expand Down Expand Up @@ -408,7 +409,8 @@ describe('RooibosPlugin', () => {
instance = __ATest_builder()
instance.new()
return instance
end function'//# sourceMappingURL=./test.spec.bs.map
end function
'//# sourceMappingURL=./test.spec.brs.map
`, [
// m.assert|Equal("123", ("alpha-" + bslib_toString(number) + "-beta")) => m.|assertEqual("123", `alpha-${number}-beta`)
{ dest: [6, 16], src: [8, 26] },
Expand Down
152 changes: 7 additions & 145 deletions tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"watch": "npx bsc --project bsconfig.json --watch"
},
"devDependencies": {
"brighterscript": "^0.65.15",
"brighterscript": "^0.65.22",
"ts-node": "^10.7.0",
"typescript": "^4.6.4"
},
Expand Down

0 comments on commit ffdc3ca

Please sign in to comment.