UNPKG

678 Btext/coffeescriptView Raw
1# Run these tests using mocha
2# mocha --compilers coffee:coffee-script tests.coffee
3
4assert = require('assert')
5fs = require('fs')
6
7Keychain = require('../src/keychain')
8
9describe 'Band', ->
10
11 keychain = null
12
13 it 'should create a new Keychain', ->
14 keychain = Keychain.create('password', 'hint')
15
16 it 'should create a new Item', ->
17 data =
18 title: 'Google Plus'
19 username: 'username'
20 password: 'password'
21 url: 'plus.google.com'
22 notes: 'Notes'
23
24 item = Keychain.createItem(data, keychain.master, keychain.overview)
25 keychain.addItem(item)
26
27 it 'should export the band files', ->
28 keychain.exportBands()