When a Toronto woman appeared at a Toronto courthouse Tuesday, she pledged allegiance to the leader of ISIS.

She was arrested after she allegedly made threats at a Scarborough mall over the weekend, an incident the RCMP say they are investigating to determine whether it is a case of national security.

It happened on the same evening as the terror attacks in London, where seven people were killed and more than 40 others hurt.

Police say a woman walked to the paint section of the Canadian Tire at Cedarbrae Mall, near Markham Rd and Lawrence Ave, and started swinging a golf club at employees and a customer.

The 32-year-old woman was restrained by employees, and at some point she also pulled out a knife, according to police. Investigators say an employee was able to pry the weapon out of her hand.

One employee suffered minor injuries.

Police say the woman was uttering threats during the altercation. NEWSTALK 1010 has learned that she was expressing support for ISIS at the time.

32-year-old Rehab Dughmosh was arrested and charged with uttering threats, assault, assault with a weapon, possession of a weapon, and carrying a concealed weapon.

In court Tuesday, Dughmosh said through an Arabic translator that, "I am pledged to the leader of the believers," and she named the leader of the Islamic State.

She consented to remain in police custody and will be back in court via video on June 21.

(With files from Justine Lewkowicz)