summaryrefslogtreecommitdiff
path: root/test/file_source.test.js
blob: 90a91de970747ff6dc43c7cb043f8866b13d99a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 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();
});