@@ -39,13 +39,9 @@ describe('BlochSphere (with empty constructor)', () => {
3939 // and then test that it's what we want.
4040 const children = bloch_sphere . children ;
4141
42- const sphere = children . find (
43- child => child . constructor . name === 'Sphere' ,
44- ) as Sphere ;
42+ const sphere = children . find ( child => child . constructor . name === 'Sphere' ) as Sphere ;
4543
46- const meridians = children . filter (
47- child => child . constructor . name === 'Meridians' ,
48- ) as Meridians [ ] ;
44+ const meridians = children . filter ( child => child . constructor . name === 'Meridians' ) as Meridians [ ] ;
4945
5046 const horizontalMeridians = meridians . find (
5147 child => child . orientation === Orientation . HORIZONTAL ,
@@ -55,13 +51,9 @@ describe('BlochSphere (with empty constructor)', () => {
5551 child => child . orientation === Orientation . VERTICAL ,
5652 ) as Meridians ;
5753
58- const axes = children . find (
59- child => child . constructor . name === 'Axes' ,
60- ) as Axes ;
54+ const axes = children . find ( child => child . constructor . name === 'Axes' ) as Axes ;
6155
62- const labels = children . find (
63- child => child . constructor . name === 'Labels' ,
64- ) as Labels ;
56+ const labels = children . find ( child => child . constructor . name === 'Labels' ) as Labels ;
6557
6658 it ( 'adds a single BlochSphere of type Group' , ( ) => {
6759 const children = scene . children ;
@@ -73,9 +65,7 @@ describe('BlochSphere (with empty constructor)', () => {
7365
7466 describe ( 'child group (Sphere, Meridians, etc.)' , ( ) => {
7567 it ( 'Sphere contains the correct number of components' , ( ) => {
76- const sphereExists = children . find (
77- child => child . constructor . name === 'Sphere' ,
78- ) ;
68+ const sphereExists = children . find ( child => child . constructor . name === 'Sphere' ) ;
7969 expect ( sphereExists ) . to . not . equal ( undefined ) ;
8070 } ) ;
8171
@@ -87,16 +77,12 @@ describe('BlochSphere (with empty constructor)', () => {
8777 } ) ;
8878
8979 it ( 'Axes exist' , ( ) => {
90- const axesExists = children . some (
91- child => child . constructor . name === 'Axes' ,
92- ) ;
80+ const axesExists = children . some ( child => child . constructor . name === 'Axes' ) ;
9381 expect ( axesExists ) . to . equal ( true ) ;
9482 } ) ;
9583
9684 it ( 'Labels exist' , ( ) => {
97- const labelsExists = children . some (
98- child => child . constructor . name === 'Labels' ,
99- ) ;
85+ const labelsExists = children . some ( child => child . constructor . name === 'Labels' ) ;
10086 expect ( labelsExists ) . to . equal ( true ) ;
10187 } ) ;
10288 } ) ;
@@ -162,13 +148,9 @@ describe('BlochSphere (with valid custom constructor values)', () => {
162148 const bloch_sphere = new BlochSphere ( 3 , 9 , 6 ) ;
163149 const children = bloch_sphere . children ;
164150
165- const sphere = children . find (
166- child => child . constructor . name === 'Sphere' ,
167- ) as Sphere ;
151+ const sphere = children . find ( child => child . constructor . name === 'Sphere' ) as Sphere ;
168152
169- const meridians = children . filter (
170- child => child . constructor . name === 'Meridians' ,
171- ) as Meridians [ ] ;
153+ const meridians = children . filter ( child => child . constructor . name === 'Meridians' ) as Meridians [ ] ;
172154
173155 const horizontalMeridians = meridians . find (
174156 child => child . orientation === Orientation . HORIZONTAL ,
@@ -229,8 +211,7 @@ describe('BlochSphere (with valid custom constructor values)', () => {
229211describe ( 'BlochSphere (with invalid custom constructor values)' , ( ) => {
230212 it ( 'fails correctly if given an invalid radius' , ( ) => {
231213 const inputs = [ 0 , - 1 ] ;
232- const errorMessage =
233- 'The radius of a Sphere must be greater than or equal to 1' ;
214+ const errorMessage = 'The radius of a Sphere must be greater than or equal to 1' ;
234215
235216 inputs . forEach ( input => {
236217 expect ( ( ) => new BlochSphere ( input ) ) . to . throw ( errorMessage ) ;
0 commit comments