mw.notify() is implemented as:
mw.notify = function ( message, options ) {
// Lazy load
return mw.loader.using( 'mediawiki.notification', function () {
return mw.notification.notify( message, options );
} );
};Since a callback is used here instead of .then() chaining, the return value of the function is a promise wrapping over an internal RL function.
Expected return value: promise wrapping over a Notification object.