New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bs-ospec

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-ospec - npm Package Compare versions

Comparing version 0.3.2 to 1.0.0

2

bsconfig.json

@@ -5,3 +5,3 @@ // This is the configuration file used by BuckleScript's build system bsb. Its documentation lives here: http://bucklescript.github.io/bucklescript/docson/#build-schema.json

"name": "bs-ospec",
"version": "0.1.0",
"version": "1.0.0",
"sources": {

@@ -8,0 +8,0 @@ "dir" : "src",

{
"name": "bs-ospec",
"version": "0.3.2",
"version": "1.0.0",
"scripts": {

@@ -5,0 +5,0 @@ "build": "bsb -make-world",

@@ -41,12 +41,14 @@ # bs-ospec

test("sync example", () => {
f(x,y) |> equals("a correct value");
f(x,y) |> equals("a correct value", ~m="A descriptive failure message");
g(x,y) |> deepEquals(["another", "correct", "value"]);
f(x,y) |. equals(123);
f(x,y) |. equals(~m="A descriptive failure message", 123);
g(x,y) |. deepEquals(["another", "correct", "value"]);
});
testAsync("async example", done_ => {
/* _ _ _ _ _ ___ _ _ _ _ __ __ __ _ _ __ _ */
/* Note how we use testAsync() instead of test() !! */
someTask()
|> Task.run(result => {
result |> equals("expected");
/* ^^^ ^ ^ ^ ^^ ^ ^ ^ ^^ ^ ^ ^ ^ ^ ^^^ ^ ^^ ^^^ ^ */
someFuture()
|. Future.get(result => {
result |. equals("expected");
done_()

@@ -59,5 +61,5 @@ })

someLongTask()
|> Task.run(result => {
result |> equals("expected");
someLongFuture()
|. Future.get(result => {
result |. equals("expected");
done_()

@@ -64,0 +66,0 @@ })

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc