Skip to content

Commit

Permalink
remove dappfile validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
mhhf committed Dec 6, 2016
1 parent 0ba180a commit 8ad2bea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/workspace.js
Expand Up @@ -338,7 +338,7 @@ module.exports = class Workspace {

writeDappfile () {
var _dappfilepath = this.getDappfilePath();
var dappfilepath = path.join(path.dirname(_dappfilepath), "Dappfile");
var dappfilepath = path.join(path.dirname(_dappfilepath), 'Dappfile');
return fs.writeYamlSync(dappfilepath, this.dappfile);
}

Expand Down
10 changes: 7 additions & 3 deletions test/_fixtures/golden/golden_init/Dappfile
@@ -1,9 +1,13 @@
version: 0.0.1-dev
tags: []
layout:
sol_sources: src
build_dir: build
packages_directory: .dapple/packages/
sol_sources: ./src
build_dir: ./build
packages_directory: ./.dapple/packages/
dependencies: {}
ignore: []
name: golden_init
description: ''
authors: []
license: MIT
keywords: []
8 changes: 4 additions & 4 deletions test/workspace_test.js
Expand Up @@ -7,7 +7,7 @@ var constants = require('../lib/constants.js');
var dircompare = require('dir-compare');
var fs = require('dapple-core/file');
var path = require('path');
var schemas = require('../lib/schemas.js');
// var schemas = require('../lib/schemas.js');
var testenv = require('./testenv');
var Workspace = require('../lib/workspace');

Expand Down Expand Up @@ -47,9 +47,9 @@ describe('class Workspace', function () {
var expectedDappfile = fs.readYamlSync(path.join(
testenv.golden_package_dir, 'Dappfile'));
assert.deepEqual(workspace.dappfile, expectedDappfile);

assert(schemas.dappfile.validate(expectedDappfile),
'dappfile is not valid by schema');
// var r = schemas.dappfile.validate(expectedDappfile);
//
// assert(r, 'dappfile is not valid by schema');
});

describe('findPackageRoot', function () {
Expand Down

0 comments on commit 8ad2bea

Please sign in to comment.