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 3
3
var path = require ( 'path' ) ;
4
4
var assert = require ( 'yeoman-generator' ) . assert ;
5
5
var helpers = require ( 'yeoman-generator' ) . test ;
6
- var os = require ( 'os' ) ;
7
6
8
7
describe ( 'aspnet-oauth:app' , function ( ) {
9
8
before ( function ( done ) {
10
9
helpers . run ( path . join ( __dirname , '../generators/app' ) )
11
10
. 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
+ } )
13
18
. on ( 'end' , done ) ;
14
19
} ) ;
15
20
16
- it ( 'creates files' , function ( ) {
21
+ it ( 'creates the provider code files' , function ( ) {
17
22
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 '
22
27
] ) ;
23
28
} ) ;
24
29
} ) ;
You can’t perform that action at this time.
0 commit comments