Skip to content

Commit

Permalink
Update tests & CLI version
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Sep 17, 2024
1 parent e927063 commit 0ed7ed9
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface HomebrewVersionInfo {
}

// Command to check flow-cli
const COMPATIBLE_FLOW_CLI_VERSIONS = '>=1.6.0'
const COMPATIBLE_FLOW_CLI_VERSIONS = '>=2.0.0'

// Shell install commands
const BREW_INSTALL_FLOW_CLI = 'brew update && brew install flow-cli'
Expand Down
4 changes: 2 additions & 2 deletions extension/test/fixtures/workspace/Error.cdc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
Careful: this cadence code is purposely written with errors so we can test error marking
*/
pub contract interface Foo {
access(all) contract interface Foo {

pub var bar: UInt6
access(all) var bar: UInt6

fun zoo() {
return 2
Expand Down
2 changes: 1 addition & 1 deletion extension/test/fixtures/workspace/FooContract.cdc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub contract FooContract {}
access(all) contract FooContract {}

2 changes: 1 addition & 1 deletion extension/test/fixtures/workspace/Script.cdc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub fun main(): UFix64 {
access(all) fun main(): UFix64 {
return 42.0
}

2 changes: 1 addition & 1 deletion extension/test/fixtures/workspace/Tx.cdc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
transaction() {
let guest: Address

prepare(authorizer: AuthAccount) {
prepare(authorizer: &Account) {
self.guest = authorizer.address
}

Expand Down
4 changes: 2 additions & 2 deletions extension/test/fixtures/workspace/test/bar/test2.cdc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Test

pub fun testPassing() {
access(all) fun testPassing() {
Test.assert(true)
}

pub fun testFailing() {
access(all) fun testFailing() {
Test.assert(false)
}
4 changes: 2 additions & 2 deletions extension/test/fixtures/workspace/test/bar/test3.cdc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Test

pub fun testFailing() {
access(all) fun testFailing() {
Test.assert(false)
}

pub fun testPassing() {
access(all) fun testPassing() {
Test.assert(true)
}
2 changes: 1 addition & 1 deletion extension/test/fixtures/workspace/test/test1.cdc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Test

pub fun testPassing() {
access(all) fun testPassing() {
Test.assert(true)
}
2 changes: 1 addition & 1 deletion extension/test/integration/6 - test-provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ suite('test provider tests', () => {
const testFilePath = path.join(workspacePath, 'test/bar/test4.cdc')
const testFileContents = `
import Test
pub fun testPassing() {
access(all) fun testPassing() {
Test.assert(true)
}
`
Expand Down

0 comments on commit 0ed7ed9

Please sign in to comment.