Cover in unit test that unmodeled and unsaved manual models are sorted together
This commit is contained in:
@@ -22,8 +22,12 @@ describe("sortMethods", () => {
|
|||||||
signature: "org.sql2o.Sql2o#unsavedManualModel()",
|
signature: "org.sql2o.Sql2o#unsavedManualModel()",
|
||||||
supported: false,
|
supported: false,
|
||||||
});
|
});
|
||||||
const unmodeledMethod = createMethod({
|
const unmodeledMethodWithEarlierSignature = createMethod({
|
||||||
signature: "org.sql2o.Sql2o#unmodeledMethod()",
|
signature: "org.sql2o.Sql2o#aaa_unmodeledMethodWithEarlierSignature()",
|
||||||
|
supported: false,
|
||||||
|
});
|
||||||
|
const unmodeledMethodWithLaterSignature = createMethod({
|
||||||
|
signature: "org.sql2o.Sql2o#zzz_unmodeledMethodWithLaterSignature()",
|
||||||
supported: false,
|
supported: false,
|
||||||
});
|
});
|
||||||
const savedAutoModelPrediction = createMethod({
|
const savedAutoModelPrediction = createMethod({
|
||||||
@@ -43,7 +47,8 @@ describe("sortMethods", () => {
|
|||||||
unsavedPositiveAutoModelPrediction,
|
unsavedPositiveAutoModelPrediction,
|
||||||
negativeAutoModelPrediction,
|
negativeAutoModelPrediction,
|
||||||
unsavedManualModel,
|
unsavedManualModel,
|
||||||
unmodeledMethod,
|
unmodeledMethodWithEarlierSignature,
|
||||||
|
unmodeledMethodWithLaterSignature,
|
||||||
savedAutoModelPrediction,
|
savedAutoModelPrediction,
|
||||||
savedManualModel,
|
savedManualModel,
|
||||||
supportedMethod,
|
supportedMethod,
|
||||||
@@ -82,8 +87,9 @@ describe("sortMethods", () => {
|
|||||||
).toEqual([
|
).toEqual([
|
||||||
unsavedPositiveAutoModelPrediction,
|
unsavedPositiveAutoModelPrediction,
|
||||||
negativeAutoModelPrediction,
|
negativeAutoModelPrediction,
|
||||||
|
unmodeledMethodWithEarlierSignature,
|
||||||
unsavedManualModel,
|
unsavedManualModel,
|
||||||
unmodeledMethod,
|
unmodeledMethodWithLaterSignature,
|
||||||
savedAutoModelPrediction,
|
savedAutoModelPrediction,
|
||||||
savedManualModel,
|
savedManualModel,
|
||||||
supportedMethod,
|
supportedMethod,
|
||||||
|
|||||||
Reference in New Issue
Block a user