1 |
|
2 |
|
3 |
|
4 | assert = require('assert')
|
5 | fs = require('fs')
|
6 |
|
7 | Keychain = require('../src/keychain')
|
8 |
|
9 | describe '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()
|