Socket
Socket
Sign inDemoInstall

dgeni-packages

Package Overview
Dependencies
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dgeni-packages - npm Package Compare versions

Comparing version 0.10.4 to 0.10.5

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Changelog

* feat(examples/generateProtractorTestsProcessor): allow basePath of test to be specified 2bfb6666
## v0.10.4 15th October 2014
* fix(base/checkAnchorLinks): match links using pathVariants ff903657

@@ -7,0 +12,0 @@ * fix(jsdoc/jsdocFileReader): provide file information in JS parse error 69680361

9

examples/processors/protractor-generate.js

@@ -13,2 +13,3 @@ "use strict";

deployments: [],
basePath: '',
$validate: {

@@ -22,2 +23,3 @@ deployments: { presence: true },

var deployments = this.deployments;
var basePath = this.basePath;

@@ -31,3 +33,3 @@ exampleMap.forEach(function(example) {

_.forEach(deployments, function(deployment) {
docs.push(createProtractorDoc(example, deployment, file));
docs.push(createProtractorDoc(example, deployment, file, basePath));
});

@@ -42,3 +44,3 @@ }

function createProtractorDoc(example, deployment, file) {
function createProtractorDoc(example, deployment, file, basePath) {
return {

@@ -51,4 +53,5 @@ docType: 'e2e-test',

innerTest: file.fileContents,
'ng-app-included': example['ng-app-included']
'ng-app-included': example['ng-app-included'],
basePath: basePath
};
}

@@ -32,2 +32,26 @@ var mockPackage = require('../mocks/mockPackage');

it("should add the configured basePath to each doc", function() {
exampleMap.set('x', {
id: 'x',
doc: {},
files: {
'app.scenario.js': { type: 'protractor', name: 'app.scenario.js', contents: '...' }
},
deployments: {}
});
var docs = [];
processor.$process(docs);
expect(docs[0].basePath).toEqual('');
expect(docs[1].basePath).toEqual('');
processor.basePath = 'a/b/';
processor.$process(docs);
expect(docs[2].basePath).toEqual('a/b/');
expect(docs[3].basePath).toEqual('a/b/');
});
it("should add a protractor doc for each example-deployment pair in the example", function() {

@@ -34,0 +58,0 @@

@@ -6,3 +6,3 @@ describe("{$ doc.description $}", function() {

browser.rootEl = '[ng-app]';{% endif %}
browser.get("{$ doc.example.deployments[doc.deployment.name].outputPath $}");
browser.get("{$ doc.basePath $}{$ doc.example.deployments[doc.deployment.name].outputPath $}");
});

@@ -9,0 +9,0 @@ {% if doc['ng-app-included'] %}afterEach(function() { browser.rootEl = rootEl; });{% endif %}

{
"name": "dgeni-packages",
"version": "0.10.4",
"version": "0.10.5",
"description": "A collection of dgeni packages for generating documentation from source code",

@@ -5,0 +5,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc