UNPKG

navy

Version:

Quick and powerful development environments using Docker and Docker Compose

23 lines (21 loc) 1.1 kB
"use strict"; var _chai = require("chai"); var _ociApiSpecification = require("../oci-api-specification"); /* eslint-env mocha */ describe('oci-api-specification', function () { describe('restSpecification.operation', function () { it('should build a v2 endpoint URL for the given registry and endpoint', function () { (0, _chai.expect)(_ociApiSpecification.restSpecification.operation('registry-1.docker.io', 'library/node/manifests/latest')).to.equal('https://registry-1.docker.io/v2/library/node/manifests/latest'); }); }); describe('restSpecification.getManifest', function () { it('should produce <repository>/manifests/<tag>', function () { (0, _chai.expect)(_ociApiSpecification.restSpecification.getManifest('library/node', 'lts')).to.equal('library/node/manifests/lts'); }); }); describe('MEDIA_TYPES', function () { it('should expose the docker fat manifest list media type', function () { (0, _chai.expect)(_ociApiSpecification.MEDIA_TYPES.FAT_MANIFEST).to.equal('application/vnd.docker.distribution.manifest.list.v2+json'); }); }); });