(docs) apply cosmetic fixes requested by @btford for PR #203
This commit is contained in:
parent
c44e966278
commit
8f2c621fbd
|
@ -1,5 +1,5 @@
|
||||||
/*global browser, element, by */
|
/*global browser, element, by */
|
||||||
describe('Getting Started E2E Tests', function() {
|
describe('Getting Started E2E Tests', function () {
|
||||||
|
|
||||||
// #docregion shared
|
// #docregion shared
|
||||||
var expectedMsg = 'My First Angular 2 App';
|
var expectedMsg = 'My First Angular 2 App';
|
||||||
|
@ -10,17 +10,17 @@ describe('Getting Started E2E Tests', function() {
|
||||||
browser.get(basePath + 'index.html');
|
browser.get(basePath + 'index.html');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should display: '+ expectedMsg, function() {
|
it('should display: ' + expectedMsg, function () {
|
||||||
expect(element(by.id('output')).getText()).toEqual(expectedMsg);
|
expect(element(by.id('output')).getText()).toEqual(expectedMsg);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// #enddocregion
|
// #enddocregion
|
||||||
|
|
||||||
describe('Getting Started in JavaScript', function() {
|
describe('Getting Started in JavaScript', function () {
|
||||||
sharedTests('gettingstarted/js/');
|
sharedTests('gettingstarted/js/');
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Getting Started in TypeScript', function() {
|
describe('Getting Started in TypeScript', function () {
|
||||||
sharedTests('gettingstarted/ts/');
|
sharedTests('gettingstarted/ts/');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ng2-getting-started",
|
"name": "ng2-getting-started",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"angular2": "2.0.0-alpha.35",
|
"angular2": "2.0.0-alpha.35",
|
||||||
"es6-module-loader": "^0.16",
|
"es6-module-loader": "^0.16",
|
||||||
|
@ -8,8 +8,8 @@
|
||||||
"traceur": "0.0.91"
|
"traceur": "0.0.91"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "cd src && tsd reinstall -r -o && cd ..",
|
"postinstall": "cd src && tsd reinstall -r -o && cd ..",
|
||||||
"tsc": "tsc -p src -w",
|
"tsc": "tsc -p src -w",
|
||||||
"start": "live-server --open=src"
|
"start": "live-server --open=src"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
describe("Jasmine sample test", function() {
|
describe("Jasmine sample test", function () {
|
||||||
|
|
||||||
it("1+1 should be 2", function() {
|
it("1+1 should be 2", function () {
|
||||||
|
|
||||||
var result = 1 + 1;
|
var result = 1 + 1;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
browser.get(basePath + 'index.html');
|
browser.get(basePath + 'index.html');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should display: '+ expectedMsg, function() {
|
it('should display: ' + expectedMsg, function () {
|
||||||
expect(element(by.id('output')).getText()).toEqual(expectedMsg);
|
expect(element(by.id('output')).getText()).toEqual(expectedMsg);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
```
|
||||||
|
angular2_1.bootstrap(AppComponent);
|
||||||
|
```
|
|
@ -0,0 +1,3 @@
|
||||||
|
```
|
||||||
|
var angular2_1 = require('angular2/angular2');
|
||||||
|
```
|
|
@ -0,0 +1,21 @@
|
||||||
|
```
|
||||||
|
var angular2_1 = require('angular2/angular2');
|
||||||
|
var AppComponent = (function () {
|
||||||
|
function AppComponent() {
|
||||||
|
this.name = 'Alice';
|
||||||
|
}
|
||||||
|
AppComponent = __decorate([
|
||||||
|
angular2_1.Component({
|
||||||
|
selector: 'app'
|
||||||
|
}),
|
||||||
|
angular2_1.View({
|
||||||
|
template: '<h1 id="output">Hello {{ name }}</h1>'
|
||||||
|
}),
|
||||||
|
__metadata('design:paramtypes', [])
|
||||||
|
], AppComponent);
|
||||||
|
return AppComponent;
|
||||||
|
})();
|
||||||
|
exports.AppComponent = AppComponent;
|
||||||
|
angular2_1.bootstrap(AppComponent);
|
||||||
|
//# sourceMappingURL=app.js.map
|
||||||
|
```
|
Loading…
Reference in New Issue