terminal-cv/node_modules/@parcel/core/test/PublicDependency.test.js
greglebreton 4e8a693745
Some checks failed
continuous-integration/drone/push Build is failing
add garagenum exp + maj url site projets
2023-01-08 16:50:31 +01:00

23 lines
675 B
JavaScript

// @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),
);
});
});