mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:30:57 +08:00
18 lines
416 B
JavaScript
18 lines
416 B
JavaScript
import { acceptance } from "helpers/qunit-helpers";
|
|
import PreloadStore from 'preload-store';
|
|
|
|
acceptance("Account Created");
|
|
|
|
test("account created", () => {
|
|
visit("/u/account-created");
|
|
PreloadStore.store('accountCreated', {
|
|
message: "Hello World"
|
|
});
|
|
|
|
andThen(() => {
|
|
ok(exists('.account-created'));
|
|
equal(find('.account-created').text(), "Hello World", "it displays the message");
|
|
});
|
|
});
|
|
|