diff --git a/test/keys.t b/test/keys.t index e6a9415..a08969f 100644 --- a/test/keys.t +++ b/test/keys.t @@ -16,13 +16,7 @@ is "$(JSON.get '/files/file 2.txt/type' tree1)" \ file_object=$(JSON.object '/files' tree1) # XXX Can't get osx and linux to sort these the same. Workaround: -{ - if [[ "$(uname)" == Darwin ]]; then - expect="file 2.txt"$'\n'"file1.txt" - else - expect="file1.txt"$'\n'"file 2.txt" - fi -} +expect="$(sort <<< "file1.txt"$'\n'"file 2.txt")" keys="$(JSON.keys '/' file_object)" is "$keys" \