File: getExtensions.js

package info (click to toggle)
node-gulp 4.0.2%2B~cs54.26.36-8
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 17,596 kB
  • sloc: javascript: 1,133,545; sh: 12; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'use strict';

var expect = require('expect');

var getExtensions = require('../lib/helpers').getExtensions;

describe('getExtensions', function() {

  it('should return the argument if it is an object', function(done) {
    var obj = {};
    expect(getExtensions(obj)).toEqual(obj);
    done();
  });

  it('should return undefined if argument is not an object', function(done) {
    var fn = function() {};
    expect(getExtensions(fn)).toEqual(undefined);
    done();
  });
});