/* eslint-disable no-unused-expressions */
import React from 'react'
import { shallow } from 'enzyme'
import { expect } from 'chai'
import LockScreen from '../../plugins/Wallet/js/components/lockscreen.js'
import PasswordPrompt from '../../plugins/Wallet/js/containers/passwordprompt.js'
import NewWalletButton from '../../plugins/Wallet/js/containers/newwalletbutton.js'

const lockedEncryptedScreen = shallow(<LockScreen unlocked={false} encrypted unlocking={false} />)
const lockedUnencryptedScreen = shallow(<LockScreen unlocked={false} encrypted={false} unlocking={false} />)
const unlockedEncryptedScreen = shallow(<LockScreen unlocked encrypted unlocking={false} />)

describe('wallet lock screen component', () => {
	it('renders an empty div if the wallet is unlocked and encrypted and not unlocking', () => {
		expect(unlockedEncryptedScreen.equals(<div />)).to.be.true
	})
	it('renders a password prompt modal if wallet is encrypted and not unlocked or unlocking', () => {
		expect(lockedEncryptedScreen.contains(<PasswordPrompt />)).to.be.true
	})
	it('renders a new wallet button if the wallet is locked but not encrypted or unlocking', () => {
		expect(lockedUnencryptedScreen.contains(<NewWalletButton />)).to.be.true
	})
})
/* eslint-enable no-unused-expressions */

@@ -288,31 +288,41 @@
 %0Aimport 
-NewWalletButton
+UninitializedWalletDialog
  from '.
@@ -359,23 +359,33 @@
 ers/
-newwalletbutton
+uninitializedwalletdialog
 .js'
@@ -1217,23 +1217,33 @@
 ns(%3C
-NewWalletButton
+UninitializedWalletDialog
  /%3E)

update lockscreen test