Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
675 B
22 lines
675 B
// @flow strict-local
|
|
|
|
import assert from 'assert';
|
|
import {createEnvironment} from '../src/Environment';
|
|
import {createDependency} from '../src/Dependency';
|
|
import Dependency from '../src/public/Dependency';
|
|
import {DEFAULT_OPTIONS} from './test-utils';
|
|
|
|
describe('Public Dependency', () => {
|
|
it('returns the same public Dependency given an internal dependency', () => {
|
|
let internalDependency = createDependency('/', {
|
|
specifier: 'foo',
|
|
specifierType: 'esm',
|
|
env: createEnvironment({}),
|
|
});
|
|
|
|
assert.equal(
|
|
new Dependency(internalDependency, DEFAULT_OPTIONS),
|
|
new Dependency(internalDependency, DEFAULT_OPTIONS),
|
|
);
|
|
});
|
|
});
|
|
|