22 lines
463 B
JavaScript
22 lines
463 B
JavaScript
/* jshint node: true, unused: false */
|
|
'use strict';
|
|
|
|
var test = require('tape').test;
|
|
|
|
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();
|
|
});
|