Skip to content

Commit

Permalink
Update tests to include new APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMartinez committed Jul 20, 2023
1 parent d3aaa94 commit 0df6254
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import Prelude
import Data.Foldable (traverse_)
import Effect (Effect)
import Effect.Console (log, logShow)
import Node.OS (arch, constants, cpus, devNull, endianness, eol, freemem, getCurrentProcessPriority, homedir, hostname, loadavg, networkInterfaces, release, setCurrentProcessPriority, tmpdir, totalmem, type_, uptime, userInfoSE, version)
import Node.OS (arch, availableParallelism, constants, cpus, devNull, endianness, eol, freemem, getCurrentProcessPriority, homedir, hostname, loadavg, machine, networkInterfaces, release, setCurrentProcessPriority, tmpdir, totalmem, type_, uptime, userInfoSE, version)
import Unsafe.Coerce (unsafeCoerce)

main :: Effect Unit
main = do
log $ show eol
logShow =<< availableParallelism
logShow =<< arch
log $ (unsafeCoerce :: _ -> String) constants
traverse_ logShow =<< cpus
Expand All @@ -21,6 +22,7 @@ main = do
log =<< homedir
log =<< hostname
logShow =<< loadavg
logShow =<< machine
logShow =<< networkInterfaces
log =<< release
setCurrentProcessPriority 30
Expand Down

0 comments on commit 0df6254

Please sign in to comment.