Skip to content

Commit

Permalink
fix schema to namespace/name from namespace/command (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
tk3fftk authored Jan 10, 2018
1 parent 8f7b30f commit 9ab8a10
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
```yaml
# example.yaml
namespace: git
command: clone
name: clone
version: '1.1'
description: SD Command for git clone with habitat.
maintainer: [email protected]
Expand Down Expand Up @@ -44,7 +44,7 @@ Output of the console.log():
config: {
description: 'SD Command for git clone with habitat.',
maintainer: '[email protected]',
command: 'git',
name: 'git',
namespace: 'clone',
version: '1.0',
format: 'habitat',
Expand Down
2 changes: 1 addition & 1 deletion test/data/bad_structure_command.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace: foo
command: bar
name: bar
version: '1.0'
maintainer: [email protected]
format: docker
Expand Down
2 changes: 1 addition & 1 deletion test/data/valid_binary_command_spec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace: foo
command: bar
name: bar
version: '1.0'
description: this is sd-command of binary
maintainer: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion test/data/valid_docker_command_spec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace: foo
command: bar
name: bar
version: '1.0'
description: this is sd-command of docker
maintainer: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion test/data/valid_habitat_command_spec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace: foo
command: bar
name: bar
version: '1.0'
description: this is sd-command of habitat
maintainer: [email protected]
Expand Down
8 changes: 4 additions & 4 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('index test', () => {
config: {
description: 'this is sd-command of binary',
maintainer: '[email protected]',
command: 'bar',
name: 'bar',
namespace: 'foo',
version: '1.0',
format: 'binary',
Expand All @@ -49,7 +49,7 @@ describe('index test', () => {
config: {
description: 'this is sd-command of docker',
maintainer: '[email protected]',
command: 'bar',
name: 'bar',
namespace: 'foo',
version: '1.0',
format: 'docker',
Expand All @@ -74,7 +74,7 @@ describe('index test', () => {
config: {
description: 'this is sd-command of habitat',
maintainer: '[email protected]',
command: 'bar',
name: 'bar',
namespace: 'foo',
version: '1.0',
format: 'habitat',
Expand All @@ -95,7 +95,7 @@ describe('index test', () => {
.then((result) => {
assert.deepEqual(result.config, {
maintainer: '[email protected]',
command: 'bar',
name: 'bar',
namespace: 'foo',
version: '1.0',
format: 'docker',
Expand Down

0 comments on commit 9ab8a10

Please sign in to comment.