Skip to content

Commit 0bb2858

Browse files
committed
Moved test from tape to jest
1 parent 6f057ea commit 0bb2858

File tree

12 files changed

+4620
-1562
lines changed

12 files changed

+4620
-1562
lines changed

.travis.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
sudo: false
2+
23
language: node_js
4+
35
node_js:
4-
- node
5-
- '9'
6-
- '8'
6+
- node
7+
- "9"
8+
- "8"
9+
710
addons:
811
apt:
912
sources:
@@ -14,14 +17,17 @@ addons:
1417
- g++-4.8-multilib
1518
- gcc-multilib
1619
- g++-multilib
20+
1721
os:
18-
- osx
19-
- linux
22+
- osx
23+
- linux
24+
2025
before_deploy:
21-
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
22-
- npm run prebuild
23-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ARCH=ia32 npm run prebuild; fi
24-
- tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" .
26+
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
27+
- npm run prebuild
28+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ARCH=ia32 npm run prebuild; fi
29+
- tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" .
30+
2531
deploy:
2632
provider: releases
2733
draft: false

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MIT License
22

33
Copyright (c) 2018 Mathias Buus
4-
Copyright (c) 2019 foxifyjs
4+
Copyright (c) 2019 Ardalan Amini
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

lib/binding.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
const path = require('path')
2-
const binding = require('node-gyp-build')(path.join(__dirname, '..'))
1+
const path = require("path");
2+
const binding = require("node-gyp-build")(path.join(__dirname, ".."));
33

4-
binding.turbo_net_on_fatal_exception(onfatalexception)
4+
binding.turbo_net_on_fatal_exception(onFatalException);
55

6-
module.exports = binding
6+
module.exports = binding;
77

8-
function onfatalexception (err) {
9-
if (process._fatalException && process._fatalException(err)) return
10-
console.error(err.stack)
11-
process.exit(1)
8+
function onFatalException(err) {
9+
if (process._fatalException && process._fatalException(err)) return;
10+
11+
console.error(err.stack);
12+
13+
process.exit(1);
1214
}

0 commit comments

Comments
 (0)