Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / test / test-79-npm / connect-mongo / connect-mongo.js
270 bytesRaw
1 | ; |
2 | |
3 | function Store () { |
4 | this.emit = function () {}; |
5 | } |
6 | |
7 | function MemoryStore () { |
8 | } |
9 | |
10 | var session = { Store: Store, MemoryStore: MemoryStore }; |
11 | var MongoStore = require('connect-mongo')(session); |
12 | if (typeof MongoStore === 'function') { |
13 | console.log('ok'); |
14 | } |
15 |
Built with git-ssb-web