From a554bc90808e7c0ddcf121245deeb17691ba59a8 Mon Sep 17 00:00:00 2001 From: Carlos Vega Date: Sat, 14 Oct 2017 10:35:36 -0600 Subject: [PATCH] Updating template and snapshot version Signed-off-by: Carlos Vega --- lib/cli/generators/ANGULAR/template/stories/index.ts | 10 ++++++---- lib/cli/test/snapshots/angular-cli/package.json | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/cli/generators/ANGULAR/template/stories/index.ts b/lib/cli/generators/ANGULAR/template/stories/index.ts index 339e2ca8b5d..def9b9acb7a 100644 --- a/lib/cli/generators/ANGULAR/template/stories/index.ts +++ b/lib/cli/generators/ANGULAR/template/stories/index.ts @@ -1,10 +1,12 @@ import { storiesOf } from '@storybook/angular'; -import { addonNotes } from '@storybook/addon-notes'; +import { withNotes } from '@storybook/addon-notes'; import { action } from '@storybook/addon-actions' import { linkTo } from '@storybook/addon-links' import { Welcome, Button } from '@storybook/angular/demo'; +declare let module; + storiesOf('Welcome', module) .add('to Storybook', () => ({ component: Welcome, @@ -18,13 +20,13 @@ storiesOf('Button', module) text: 'Hello Button' } })) - .add('with some emoji', addonNotes({ notes: 'My notes on a button with emojis' })(() => ({ + .add('with some emoji', withNotes({ notes: 'My notes on a button with emojis' })(() => ({ component: Button, props: { text: '😀 😎 👍 💯' } }))) - .add('with some emoji and action', addonNotes({ notes: 'My notes on a button with emojis' })(() => ({ + .add('with some emoji and action', withNotes({ notes: 'My notes on a button with emojis' })(() => ({ component: Button, props: { text: '😀 😎 👍 💯', @@ -39,4 +41,4 @@ storiesOf('Another Button', module) text: 'Go to Welcome Story', onClick: linkTo('Welcome') } - })) \ No newline at end of file + })) diff --git a/lib/cli/test/snapshots/angular-cli/package.json b/lib/cli/test/snapshots/angular-cli/package.json index cc26ceab945..b6c187733a7 100644 --- a/lib/cli/test/snapshots/angular-cli/package.json +++ b/lib/cli/test/snapshots/angular-cli/package.json @@ -44,6 +44,6 @@ "ts-node": "1.2.1", "tslint": "^4.3.0", "typescript": "~2.4.0", - "@storybook/angular": "^3.3.0-alpha.0" + "@storybook/angular": "3.3.0-alpha.2" } }