{"size": 537, "ext": "js", "max_stars_repo_path": "src/parser/remove/remove.spec.js", "max_stars_repo_name": "selfeki/lazy-jar", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/parser/remove/remove.spec.js", "max_issues_repo_name": "selfeki/lazy-jar", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/parser/remove/remove.spec.js", "max_forks_repo_name": "selfeki/lazy-jar", "max_forks_repo_forks_event_min_datetime": "2018-07-17T22:44:49.000Z", "max_forks_repo_forks_event_max_datetime": "2018-07-17T22:44:49.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 31.5882352941, "max_line_length": 74, "alphanum_fraction": 0.625698324}
const assert = require('assert');
const { REMOVE } = require('../../commands');
const parseRemoveCommand = require('./remove');

describe('parseRemoveCommand', function() {
  it('should handle ",", "and", and "me" keywords', function() {
    const command = 'remove @dtoki, @alireza.eva.u23, and me from artris';
    const expected = {
      type: REMOVE,
      from: 'artris',
      usernames: ['@dtoki', '@alireza.eva.u23', 'me']
    };
    const result = parseRemoveCommand(command);
    assert.deepEqual(result, expected);
  });
});
