This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dog dog = new Dog() | |
| //... | |
| dog.with { | |
| name = 'Rex' | |
| age = 2 | |
| color = Color.BLACK | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dog dog = new Dog() | |
| //... | |
| dog.with { | |
| (name, age, color) = ['Rex', 2, Color.BLACK] | |
| } | |
| assert 'Rex' == dog.name | |
| assert 2 == dog.age | |
| assert Color.BLACK == dog.color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dog dog = new Dog() | |
| //... | |
| (dog.name, dog.age, dog.color) = ['Rex', 2, Color.BLACK] // Does not work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm install -g karma | |
| npm install karma-jasmine@2_0 --save-dev | |
| npm install karma-phantomjs-launcher --save-dev | |
| npm install karma-remote-reporter --save-dev | |
| npm install -g karma-cli |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm list --depth=0 | |
| npm list -g --depth=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reporters: ['progress'], | |
| remoteReporter: {}, | |
| autoWatch: true, | |
| singleRun: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reporters: ['remote'], | |
| remoteReporter: { | |
| host: 'localhost', | |
| port: '9889' | |
| }, | |
| autoWatch: false, | |
| singleRun: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| karma start karma.conf.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grails test-app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grails test-app unit:javascript |