message: remove spoiler matching
diff: @@ -17,44 +17,20 @@ describe('Content warnings detection', () => {
  ReturnType<typeof extractContentWarnings>
  >;
  expect(result).toBeTruthy();
  - const {block, subject, text, isSpoiler} = result;
  + const {block, subject, text} = result;
  expect(block).toEqual(expected[0]);
  expect(subject).toEqual(expected[1]);
  expect(text).toBeTruthy();
  - expect(isSpoiler).toBeFalsy();
  - });
  - });
  -
  - describe('Spoilers', () => {
  - test.each([
  - ['// foobar spoilers bla', ['foobar spoilers', 'bla']],
  - ['foobar spoilers\nbla', ['foobar spoilers', 'bla']],
  - ['[foobar spoilers]\nbla', ['foobar spoilers', 'bla']],
  - ['foobar spoilers \n.\n.\n.\n.\n. bla', ['foobar spoilers', 'bla']],
  - ])('%s', (input, expected) => {
  - const result = extractContentWarnings(input) as NonNullable<
  - ReturnType<typeof extractContentWarnings>
  - >;
  - expect(result).toBeTruthy();
  - const {block, subject, text, isSpoiler} = result;
  -
  - expect(block).toEqual(expected[0]);
  - expect(subject).toEqual(expected[0]);
  - expect(text).toBeTruthy();
  - expect(isSpoiler).toBeTruthy();
  });
  });
  describe('No match', () => {
  - test.each([
  - 'lorem ipsum cw foobar',
  - 'Lorem ipsum dolor sit, amet consectetur',
  - 'urgh i hate spoilers what the hell',
  - 'please cw your spoilers!!!',
  - 'foobar spoiler baz bar',
  - ])('%s', (input) => {
  + test.each(['lorem ipsum cw foobar', 'Lorem ipsum dolor sit, amet consectetur'])(
  + '%s',
  + (input) => {
  expect(extractContentWarnings(input)).toBeUndefined();
  - });
  + }
  + );
  });
  });
  