Browse Source

fix tests for script

patch-2
Manuel Araoz 10 years ago
parent
commit
778977449a
  1. 2
      .jshintrc
  2. 10
      test/script.js

2
.jshintrc

@ -8,7 +8,7 @@
"eqeqeq": true, // Require triple equals i.e. `===`.
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
"latedef": true, // Prohibit variable use before definition.
"newcap": true, // Require capitalization of all constructor functions e.g. `new F()`.
"newcap": false, // Require capitalization of all constructor functions e.g. `new F()`.
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
"quotmark": "single", // Define quotes to string values.
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions.

10
test/script.js

@ -1,13 +1,15 @@
var Script = require('../lib/script');
'use strict';
var should = require('chai').should();
var Opcode = require('../lib/opcode');
var BufferReader = require('../lib/bufferreader');
var BufferWriter = require('../lib/bufferwriter');
var bitcore = require('..');
var Script = bitcore.Script;
var Opcode = bitcore.Opcode;
describe('Script', function() {
it('should make a new script', function() {
var script = new Script();
should.exist(script);
});
describe('#fromBuffer', function() {

Loading…
Cancel
Save