File: test.js

package info (click to toggle)
node-pinkie-promise 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 104 kB
  • ctags: 3
  • sloc: makefile: 4; sh: 2
file content (12 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';
var assert = require('assert');
var pinkiePromise = require('./');
var pinkie = require('pinkie');

it('should ponyfill Promise', function () {
	if (global.Promise) {
		assert.equal(pinkiePromise, global.Promise);
	} else {
		assert.equal(pinkiePromise, pinkie);
	}
});