refactor: Rewrite immutablejs import statements using destructuring (#4147)
This commit is contained in:
parent
7bacdd718a
commit
cc68d1945b
28 changed files with 141 additions and 141 deletions
|
@ -1,12 +1,12 @@
|
|||
import { expect } from 'chai';
|
||||
import { render } from 'enzyme';
|
||||
import Immutable from 'immutable';
|
||||
import { fromJS } from 'immutable';
|
||||
import React from 'react';
|
||||
import DisplayName from '../../../app/javascript/mastodon/components/display_name';
|
||||
|
||||
describe('<DisplayName />', () => {
|
||||
it('renders display name + account name', () => {
|
||||
const account = Immutable.fromJS({
|
||||
const account = fromJS({
|
||||
username: 'bar',
|
||||
acct: 'bar@baz',
|
||||
display_name: 'Foo',
|
||||
|
@ -16,7 +16,7 @@ describe('<DisplayName />', () => {
|
|||
});
|
||||
|
||||
it('renders the username + account name if display name is empty', () => {
|
||||
const account = Immutable.fromJS({
|
||||
const account = fromJS({
|
||||
username: 'bar',
|
||||
acct: 'bar@baz',
|
||||
display_name: '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue