Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ospec

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ospec - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

6

ospec.js

@@ -75,3 +75,3 @@ "use strict"

if (fn.length > 0) {
var timeout = 0, delay = 40, s = new Date
var timeout = 0, delay = 200, s = new Date
var isDone = false

@@ -168,3 +168,3 @@ var body = fn.toString()

if (compare(this.value, value)) record(null)
else record(serialize(this.value) + " " + verb + " " + serialize(value))
else record(serialize(this.value) + "\n" + verb + "\n" + serialize(value))
return function(message) {

@@ -203,3 +203,3 @@ var result = results[results.length - 1]

var stackTrace = r.error.match(/^(?:(?!Error|[\/\\]ospec[\/\\]ospec\.js).)*$/m)
console.error(r.context + ": " + highlight(r.message) + (stackTrace ? "\n\n" + stackTrace + "\n\n" : ""), hasProcess ? "" : "color:red", hasProcess ? "" : "color:black")
console.error(r.context + ":\n" + highlight(r.message) + (stackTrace ? "\n\n" + stackTrace + "\n\n" : ""), hasProcess ? "" : "color:red", hasProcess ? "" : "color:black")
status = 1

@@ -206,0 +206,0 @@ }

{
"name": "ospec",
"version": "1.1.0",
"version": "1.2.0",
"description": "Noiseless testing framework",

@@ -12,4 +12,6 @@ "main": "ospec.js",

"license": "MIT",
"bin": "./bin/ospec",
"bin": {
"ospec": "./bin/ospec"
},
"repository": "lhorie/mithril.js#rewrite"
}

@@ -7,3 +7,3 @@ # ospec

Version: 1.1
Version: 1.2
License: MIT

@@ -263,2 +263,38 @@

### Running the test suite from the command-line
ospec will automatically evaluate all `*.js` files in any folder named `/tests`.
`o.run()` is automatically called by the cli - no need to call it in your test code.
#### Create an npm script in your package:
```
"scripts": {
...
"test": "ospec",
...
}
```
```
$ npm test
```
#### (Optionally) Install Globally
```
$ npm i -g ospec
$ ospec
```
#### (Optionally) Evaluate ES6+ code:
One way to accomplish this would be to include the 'babel-cli' module (`npm i babel-cli`)
(This would pre-suppose that you're already using babel in your project and thus have it configured to your liking).
```
$ babel-node ospec
```
---

@@ -265,0 +301,0 @@

@@ -0,0 +0,0 @@ "use strict"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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