Comments (5)
Hopefully there's some way to check if signpass is installed, and if not, skip this test.
On Oct 25, 2012, at 11:30 AM, Dan Milon [email protected] wrote:
$ npm test
[email protected] test /home/razor/Documents/dev/photiq/photiq-api/node_modules/passbook
mocha․․․․․․․․pass.json 196
[email protected] 9839
[email protected] 5887
logo.png 2322
icon.png 4573
strip.png 2800
[email protected] 2892
manifest.json 391
signature 3334
․․․․․․․․․✖ 2 of 17 tests failed:
Passbook generated should be a valid ZIP:
Error: done() called multiple times
at multiple (/usr/lib/node_modules/mocha/lib/runnable.js:152:31)
at done (/usr/lib/node_modules/mocha/lib/runnable.js:158:26)
at Zip.Runnable.run.duration (/usr/lib/node_modules/mocha/lib/runnable.js:174:9)
at Zip.EventEmitter.emit (events.js:90:17)
at null. (/home/razor/Documents/dev/photiq/photiq-api/node_modules/passbook/lib/zip.js:39:9)
at EventEmitter.emit (events.js:90:17)
at WriteStream.flush (fs.js:1517:12)
at Object.oncomplete (fs.js:297:15)Passbook generated should contain a signature:
AssertionError: false == true
at /home/razor/Documents/dev/photiq/photiq-api/node_modules/passbook/test/passbook_test.js:153:9
at ChildProcess.exithandler (child_process.js:544:7)
at ChildProcess.EventEmitter.emit (events.js:96:17)
at maybeClose (child_process.js:638:16)
at Socket.ChildProcess.spawn.stdin (child_process.js:815:11)
at Socket.EventEmitter.emit (events.js:93:17)
at Socket._destroy.destroyed (net.js:357:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
First error is reasonable. at this test a streams response is piped to the done function.About the second one, probably its because it tries to execute the signpass program, which is distributed by Apple and is OSX only.
—
Reply to this email directly or view it on GitHub.
from node-passbook.
Yeah. Although the big issue here is the first fail. That should fail for you also. You are piping a stream to the test's callback function.
from node-passbook.
First argument is output stream, second argument is a callback. Callback is getting triggered twice, by two different events.
On Oct 25, 2012, at 2:36 PM, Dan Milon [email protected] wrote:
Yeah. Although the big issue here is the first fail. That should fail for you also. You are piping a stream to the test's callback function.
—
Reply to this email directly or view it on GitHub.
from node-passbook.
That second argument is not node streams standard, but anyway, calling a callback twice is strange behavior imo.
from node-passbook.
Passbook is not a stream, it's more of a rendering view that pipes to a stream (file, HTTP response, etc).
I'm not too worried about this part of the codebase because I'm about to change it soon.
On Oct 25, 2012, at 3:35 PM, Dan Milon [email protected] wrote:
That second argument is not node streams standard, but anyway, calling a callback twice is strange behavior imo.
—
Reply to this email directly or view it on GitHub.
from node-passbook.
Related Issues (20)
- Error on signManifest call HOT 2
- Support Beacons.
- Signing fails without key file HOT 1
- Add localization support
- [Error: unable to write 'random state' ] HOT 3
- Unable to load signing key file HOT 1
- npm install issue with depricated minimatch
- Error opening signer certificate /etc/passbook/keys/ HOT 1
- WWDR certificate expired Feb 14, 2016 HOT 3
- Passes are generated fine, but can't add them to Wallet HOT 1
- No 'data' event emitted. HOT 2
- Remove logo as required image. HOT 1
- Please update the cli dependency which has known vulnerabilities
- Unable to add barcode in the pass. HOT 2
- Is this repo active?
- Doesn`t work locations event
- Signature parsing with regular expression failure HOT 2
- Code=1 "Manifest signature did not verify successfully" HOT 2
- Trouble getting the passes to load
- Question: How to change the generated file name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-passbook.