File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 33var path = require ( 'path' ) ;
44var assert = require ( 'yeoman-generator' ) . assert ;
55var helpers = require ( 'yeoman-generator' ) . test ;
6- var os = require ( 'os' ) ;
76
87describe ( 'aspnet-oauth:app' , function ( ) {
98 before ( function ( done ) {
109 helpers . run ( path . join ( __dirname , '../generators/app' ) )
1110 . withOptions ( { skipInstall : true } )
12- . withPrompts ( { someOption : true } )
11+ . withPrompts ( {
12+ name : 'Foo' ,
13+ authorname : 'John Smith' ,
14+ authorizationendpoint : 'https://foo.local/auth' ,
15+ tokenendpoint : 'https://foo.local/token' ,
16+ userinformationendpoint : 'https://foo.local/user'
17+ } )
1318 . on ( 'end' , done ) ;
1419 } ) ;
1520
16- it ( 'creates files' , function ( ) {
21+ it ( 'creates the provider code files' , function ( ) {
1722 assert . file ( [
18- 'bower.json ' ,
19- 'package.json ' ,
20- '.editorconfig ' ,
21- '.jshintrc '
23+ 'AspNet.Security.OAuth.Foo/FooAuthenticationDefaults.cs ' ,
24+ 'AspNet.Security.OAuth.Foo/FooAuthenticationExtensions.cs ' ,
25+ 'AspNet.Security.OAuth.Foo/FooAuthenticationHandler.cs ' ,
26+ 'AspNet.Security.OAuth.Foo/FooAuthenticationOptions.cs '
2227 ] ) ;
2328 } ) ;
2429} ) ;
You can’t perform that action at this time.
0 commit comments