Skip to content

Commit

Permalink
Fixes from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed Apr 20, 2022
1 parent 25ed42f commit 755b8c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export default ({ getService }: FtrProviderContext) => {

runner.test('will return 3 results if we have a list that includes 1 long', async () => {
const filename = await importFile(supertest, log, 'long', ['1']);
const rule = getRuleForSignalTesting(['long_as_string']);
const rule = getRuleForSignalTesting(['long_as_string'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand All @@ -539,7 +539,7 @@ export default ({ getService }: FtrProviderContext) => {

runner.test('will return 2 results if we have a list that includes 2 long', async () => {
const filename = await importFile(supertest, log, 'long', ['1', '3']);
const rule = getRuleForSignalTesting(['long_as_string']);
const rule = getRuleForSignalTesting(['long_as_string'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand All @@ -562,7 +562,7 @@ export default ({ getService }: FtrProviderContext) => {

runner.test('will return 0 results if we have a list that includes all long', async () => {
const filename = await importFile(supertest, log, 'long', ['1', '2', '3', '4']);
const rule = getRuleForSignalTesting(['long_as_string']);
const rule = getRuleForSignalTesting(['long_as_string'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand Down Expand Up @@ -590,7 +590,7 @@ export default ({ getService }: FtrProviderContext) => {
'2',
'3',
]);
const rule = getRuleForSignalTesting(['long_as_string']);
const rule = getRuleForSignalTesting(['long_as_string'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand Down Expand Up @@ -697,7 +697,7 @@ export default ({ getService }: FtrProviderContext) => {

runner.test('will return 1 result if we have a list that excludes 1 long', async () => {
const filename = await importFile(supertest, log, 'long', ['1']);
const rule = getRuleForSignalTesting(['long_as_string']);
const rule = getRuleForSignalTesting(['long_as_string'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand All @@ -720,7 +720,7 @@ export default ({ getService }: FtrProviderContext) => {

runner.test('will return 2 results if we have a list that excludes 2 long', async () => {
const filename = await importFile(supertest, log, 'long', ['1', '3']);
const rule = getRuleForSignalTesting(['long_as_string']);
const rule = getRuleForSignalTesting(['long_as_string'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand All @@ -743,7 +743,7 @@ export default ({ getService }: FtrProviderContext) => {

runner.test('will return 4 results if we have a list that excludes all long', async () => {
const filename = await importFile(supertest, log, 'long', ['1', '2', '3', '4']);
const rule = getRuleForSignalTesting(['long_as_string']);
const rule = getRuleForSignalTesting(['long_as_string'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand Down Expand Up @@ -772,7 +772,7 @@ export default ({ getService }: FtrProviderContext) => {
'2',
'3',
]);
const rule = getRuleForSignalTesting(['long_as_string']);
const rule = getRuleForSignalTesting(['long_as_string'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ export default ({ getService }: FtrProviderContext) => {

runner.test('will return 3 results if we have a list that includes 1 text', async () => {
const filename = await importFile(supertest, log, 'text', ['one']);
const rule = getRuleForSignalTesting(['text_no_spaces']);
const rule = getRuleForSignalTesting(['text_no_spaces'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand All @@ -581,7 +581,7 @@ export default ({ getService }: FtrProviderContext) => {

runner.test('will return 2 results if we have a list that includes 2 text', async () => {
const filename = await importFile(supertest, log, 'text', ['one', 'three']);
const rule = getRuleForSignalTesting(['text_no_spaces']);
const rule = getRuleForSignalTesting(['text_no_spaces'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand Down Expand Up @@ -609,7 +609,7 @@ export default ({ getService }: FtrProviderContext) => {
'three',
'four',
]);
const rule = getRuleForSignalTesting(['text_no_spaces']);
const rule = getRuleForSignalTesting(['text_no_spaces'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand Down Expand Up @@ -746,7 +746,7 @@ export default ({ getService }: FtrProviderContext) => {

runner.test('will return 1 result if we have a list that excludes 1 text', async () => {
const filename = await importTextFile(supertest, log, 'text', ['one']);
const rule = getRuleForSignalTesting(['text_no_spaces']);
const rule = getRuleForSignalTesting(['text_no_spaces'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand All @@ -769,7 +769,7 @@ export default ({ getService }: FtrProviderContext) => {

runner.test('will return 2 results if we have a list that excludes 2 text', async () => {
const filename = await importTextFile(supertest, log, 'text', ['one', 'three']);
const rule = getRuleForSignalTesting(['text_no_spaces']);
const rule = getRuleForSignalTesting(['text_no_spaces'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand Down Expand Up @@ -797,7 +797,7 @@ export default ({ getService }: FtrProviderContext) => {
'three',
'four',
]);
const rule = getRuleForSignalTesting(['text_no_spaces']);
const rule = getRuleForSignalTesting(['text_no_spaces'], '');
const { id } = await createRuleWithExceptionEntries(supertest, log, rule, [
[
{
Expand Down

0 comments on commit 755b8c5

Please sign in to comment.