Skip to content

Commit 07748c5

Browse files
Fix tests
Fix failing tests.
1 parent 8710fdb commit 07748c5

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

test/test-app.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,27 @@
33
var path = require('path');
44
var assert = require('yeoman-generator').assert;
55
var helpers = require('yeoman-generator').test;
6-
var os = require('os');
76

87
describe('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
});

0 commit comments

Comments
 (0)