You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@IsTest(
seeAllData=true// Reason this is required...//isParallel = false // Reason this is commented...
)
classMyTest {
@IsTeststaticvoidtestStuff() {
System.assert(1==1);
}
}
Actual output:
@IsTest(seeAllData=true) // Reason this is required...
class //isParallel = false // Reason this is commented...
MyTest {
@IsTeststaticvoidtestStuff() {
System.assert(1==1);
}
}
Expected output:
@IsTest(
seeAllData=true// Reason this is required...//isParallel = false // Reason this is commented...
)
classMyTest {
@IsTeststaticvoidtestStuff() {
System.assert(1==1);
}
}
Additional information:
$ prettier --debug-check MyTest.cls
MyTest.cls[error] MyTest.cls: prettier(input) !== prettier(prettier(input))
[error] Index:
[error] ===================================================================
[error] ---
[error] +++
[error] @@ -1,5 +1,6 @@
[error] -@IsTest(seeAllData=true) // Reason this is required...
[error] -class //isParallel = false // Reason this is commented...
[error] -MyTest {
[error] +@IsTest(
[error] + seeAllData=true
[error] +) // Reason this is required... //isParallel = false // Reason this is commented...
[error] +class MyTest {
[error] @IsTest
[error] static void testStuff() {
[error]
If the input is changed to include an access modifier on the class the debug-check passes but comments are still in wrong location
Input:
@IsTest(
seeAllData=true// Reason this is required...//isParallel = false // Reason this is commented...
)
privateclassMyTest {
@IsTeststaticvoidtestStuff() {
System.assert(1==1);
}
}
Actual output:
@IsTest(seeAllData=true) // Reason this is required...//isParallel = false // Reason this is commented...privateclassMyTest {
@IsTeststaticvoidtestStuff() {
System.assert(1==1);
}
}
$ prettier --debug-check MyTest.cls
MyTest.cls
Done in 3.17s.
OS: Ubuntu 16.04.6 LTS
Version: 1.0.0
The text was updated successfully, but these errors were encountered:
Input:
Actual output:
Expected output:
Additional information:
If the input is changed to include an access modifier on the class the debug-check passes but comments are still in wrong location
Input:
Actual output:
The text was updated successfully, but these errors were encountered: