Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
3549f6ae
Commit
3549f6ae
authored
Feb 08, 2023
by
Luca Bianconi
Committed by
Matteo Pologruto
Feb 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip-changelog] test: updated expected cores file (#2066)
parent
b5563423
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2703 additions
and
2703 deletions
+2703
-2703
internal/integrationtest/core/core_test.go
internal/integrationtest/core/core_test.go
+1
-1
internal/integrationtest/testdata/installed.json
internal/integrationtest/testdata/installed.json
+2702
-2702
No files found.
internal/integrationtest/core/core_test.go
View file @
3549f6ae
...
@@ -990,5 +990,5 @@ func TestCoreInstallCreatesInstalledJson(t *testing.T) {
...
@@ -990,5 +990,5 @@ func TestCoreInstallCreatesInstalledJson(t *testing.T) {
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
sortedInstalled
:=
requirejson
.
Parse
(
t
,
installedJson
)
.
Query
(
"walk(if type ==
\"
array
\"
then sort else . end)"
)
.
String
()
sortedInstalled
:=
requirejson
.
Parse
(
t
,
installedJson
)
.
Query
(
"walk(if type ==
\"
array
\"
then sort else . end)"
)
.
String
()
sortedExpected
:=
requirejson
.
Parse
(
t
,
expectedInstalledJson
)
.
Query
(
"walk(if type ==
\"
array
\"
then sort else . end)"
)
.
String
()
sortedExpected
:=
requirejson
.
Parse
(
t
,
expectedInstalledJson
)
.
Query
(
"walk(if type ==
\"
array
\"
then sort else . end)"
)
.
String
()
require
.
Equal
(
t
,
sortedExpected
,
sortedInstalled
)
require
.
JSONEq
(
t
,
sortedExpected
,
sortedInstalled
)
}
}
internal/integrationtest/testdata/installed.json
View file @
3549f6ae
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment