Files
MapLibreParticleLab/test/js/file_source.test.js
2015-02-13 11:52:20 -08:00

28 lines
547 B
JavaScript

'use strict';
/* jshint node: true */
var test = require('tape');
var tapSpec = require('tap-spec');
test.createStream()
.pipe(tapSpec())
.pipe(process.stdout);
var mbgl = require('../..');
test('FileSource', function(t) {
t.test('constructor', function(t) {
t.test('must be called with new', function(t) {
t.throws(function() {
mbgl.FileSource();
}, /Use the new operator to create new FileSource objects/);
t.end();
});
t.end();
});
t.end();
});